"RamatGatech" wrote in message <kathaq$43d$1@newscl01ah.mathworks.com>...
> I get an error message when I attempt to run the following command:
> [Nd,Wnd] = buttord(1, 2, 3, 40)
> Error message: ??? Undefined function or method 'generatemsgid' for input arguments of type 'char'.
>
> Error in ==> buttord at 42
> if ~isempty(msg), error(generatemsgid('SigErr'),msg); end
>
> I am using Matlab R2008b and I have the Signal Processing Toolbox, Version 6.10 installed which I verified using 'ver'. What am I missing?
> Thanks.
For me the generatemsgid function is in toolbox\shared\spcuilib\. Maybe that folder got removed from your search path somehow, or it just does not exist. In any case, the generatemsgid function is used to display errors, so if you can figure out how to call buttord without otherwise producing an error, the fact that you are missing that file won't matter. You could just edit that line of buttord to throw the error without calling generatemsgid (just error(msg))
(Incidentally, running the line you show gives the error message is "The cutoff frequencies must be within the interval of (0,1)")
> I get an error message when I attempt to run the following command:
> [Nd,Wnd] = buttord(1, 2, 3, 40)
> Error message: ??? Undefined function or method 'generatemsgid' for input arguments of type 'char'.
>
> Error in ==> buttord at 42
> if ~isempty(msg), error(generatemsgid('SigErr'),msg); end
>
> I am using Matlab R2008b and I have the Signal Processing Toolbox, Version 6.10 installed which I verified using 'ver'. What am I missing?
> Thanks.
For me the generatemsgid function is in toolbox\shared\spcuilib\. Maybe that folder got removed from your search path somehow, or it just does not exist. In any case, the generatemsgid function is used to display errors, so if you can figure out how to call buttord without otherwise producing an error, the fact that you are missing that file won't matter. You could just edit that line of buttord to throw the error without calling generatemsgid (just error(msg))
(Incidentally, running the line you show gives the error message is "The cutoff frequencies must be within the interval of (0,1)")