From: Satyajit Mittra on
Hi all
I am trying to run a signal processing code I am getting the following erros


??? Undefined function or method 'arg' for
input arguments of type 'double'.

Error in ==> freqz_plot at 24
phase = unwrap (arg (h));

Error in ==> freqz at 158
freqz_plot (f, h);

I tried pathtool for double checking if the path is correct everything is in the same folder but it just won't work. what am I missing here?

I am using Matlab 7.9.0 2009b. If I am not wrong the functions mentioned above are already defined in MATLAB so there shouldn't be anything wrong with them. The only thing I could guess at is that this is a path related error. Please help me out.
From: Steven Lord on

"Satyajit Mittra" <satyajit.mittra(a)gmail.com> wrote in message
news:hv9ci7$523$1(a)fred.mathworks.com...
> Hi all
> I am trying to run a signal processing code I am getting the following
> erros
>
>
> ??? Undefined function or method 'arg' for
> input arguments of type 'double'.
>
> Error in ==> freqz_plot at 24
> phase = unwrap (arg (h));
>
> Error in ==> freqz at 158
> freqz_plot (f, h);
>
> I tried pathtool for double checking if the path is correct everything is
> in the same folder but it just won't work. what am I missing here?
>
> I am using Matlab 7.9.0 2009b. If I am not wrong the functions mentioned
> above are already defined in MATLAB so there shouldn't be anything wrong
> with them. The only thing I could guess at is that this is a path related
> error. Please help me out.

I don't see any call to freqz_plot on line 158 of the FREQZ function that
ships with Signal Processing Toolbox, so I don't think you're calling that
version of the function. Execute this code to check that hypothesis:

which -all freqz

If you see another instance of freqz above the one that is in the Signal
Processing Toolbox directory, rename or remove it and try running your
signal processing code again.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: us on
"Satyajit Mittra" <satyajit.mittra(a)gmail.com> wrote in message <hv9ci7$523$1(a)fred.mathworks.com>...
> Hi all
> I am trying to run a signal processing code I am getting the following erros
>
>
> ??? Undefined function or method 'arg' for
> input arguments of type 'double'.
>
> Error in ==> freqz_plot at 24
> phase = unwrap (arg (h));
>
> Error in ==> freqz at 158
> freqz_plot (f, h);
>
> I tried pathtool for double checking if the path is correct everything is in the same folder but it just won't work. what am I missing here?
>
> I am using Matlab 7.9.0 2009b. If I am not wrong the functions mentioned above are already defined in MATLAB so there shouldn't be anything wrong with them. The only thing I could guess at is that this is a path related error. Please help me out.

do you use the correct signal proc tbx version(?)...

% what does this command show...
ver;

us