Why do I receive an error message while returning values using the SPECTROGRAM function with the frequency location string specified in the Signal Processing Toolbox 6.3 (R14SP2)? When I execute the following commands at the MATLAB command prompt: T = 0:0.001:2; X = chirp(T,0,1,150); F = 0:.1:100; [Y,F,T,P] = spectrogram(X,256,250,F,1E3,'yaxis'); I receive the following error message: ??? Error using ==> signal\private\welchparse Ambiguous or invalid string option specified. Error in ==> spectrogram at 106 [x,nx,xisreal,y,Ly,win,winName,winParam,noverlap,k,L,options,msg] = ...
Prashant Kumar answered .
2025-11-20
[Y,F,T,P] = spectrogram (..., 'freqloc')
T = 0:0.001:2; X = chirp(T,0,1,150); F = 0:.1:100; [Y,F,T,P] = spectrogram(X,256,250,F,1E3);