Prev: Contour labels hidden under surface plot
Next: How to reduce a matrix subject to a common value within it?
From: Sprinceana on 6 May 2010 09:52 On this line of code: getd('C:/Program Files/MATLAB/R2007b/toolbox/signal/signal'); Here I have a script called test.m (lies in this path) that I call in my_script.m as a function with parameters. I have this error: ??? Undefined function or method 'getd' for input arguments of type 'char'. Error in ==> haar_aprox at 1 This is my path = C:/Program Files/MATLAB/R2007b/toolbox/signal/signal
From: Steven Lord on 6 May 2010 10:14 "Sprinceana " <mihaispr(a)yahoo.com> wrote in message news:hruhi4$fkj$1(a)fred.mathworks.com... > On this line of code: > > getd('C:/Program Files/MATLAB/R2007b/toolbox/signal/signal'); > > Here I have a script called test.m (lies in this path) > > that I call in my_script.m as a function with parameters. > > I have this error: > > ??? Undefined function or method 'getd' for input arguments of type > 'char'. Type the following command: which -all getd If this indicates that getd is not found, you need to locate it and either CD into the directory containing it, add that directory to your path using File -> Set Path or ADDPATH, or move that file to your current directory or a directory on your path. I would NOT recommend putting it in a directory under "C:/Program Files/MATLAB/R2007b/toolbox/", though. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Ravi Rastogi on 6 May 2010 10:22
"Sprinceana " <mihaispr(a)yahoo.com> wrote in message <hruhi4$fkj$1(a)fred.mathworks.com>... > On this line of code: > > getd('C:/Program Files/MATLAB/R2007b/toolbox/signal/signal'); > > Here I have a script called test.m (lies in this path) > > that I call in my_script.m as a function with parameters. > > I have this error: > > ??? Undefined function or method 'getd' for input arguments of type 'char'. > > Error in ==> haar_aprox at 1 > > This is my path = C:/Program Files/MATLAB/R2007b/toolbox/signal/signal I am not very sure, what is 'getd' is this a function that you wrote?? Another, rule of thumb that i learned is that, if you want to call a function ('my_script') from any script file ('test') then you need to have that function m file in the same folder where you have your script file. Hope this helps. R |