This is a similar question to what I asked in a previous StackOverflow post (Undefined function in MATLAB).
Basically, I am using the function dtw in the latest MATLAB release, and would like to tweak a few parts of it. To get started, I typed:
edit dtw
I saved the resulting code to file called dtw_Copy.m, and changed the name of the function to dtw_Copy
as well. Going through the code line by line with a set of input parameters x
and y
, I receive an error message:
Undefined function 'dtwmex' for input arguments of type 'double'.
I also get this error message if I do not go through the code line by line, and simply type dtw_Current(x,y)
, after again testing a set of input parameters x
and y
.
Upon running:
help 'dtwmex'
it is indicated that dtwmex
is not found. I tried also:
edit 'dtwmex'
But am told that currentDirectory/dtwmex.m does not exist.
Searching online, I found a resource that seemed straight-forward in trouble-shooting this error. The resource recommends to ensure the toolbox is installed. I am unsure which toolbox supports the function dtwmex
, and so I type the function name into the website. This results in a message that: "Your search - dtwmex - did not match any documents."
The resource also recommends verifying the path used to access the function. I followed the instructions to do so, and when I typed:
which -all dtwmex
I receive:
currentDirectory\matlab\toolbox\signal\signal\private\dtwmex.mexw64 % Private to signal
This seems to indicate that the function is in the signal toolbox, which is private? Is there a possibility to still run dtw_Current(x,y)
and/or to run its contents line by line?
I tried opening the dtwmex.mexw64 file to add its contents as a subroutine (as was the solution in my previous question), but am told that it cannot be opened.