Undefined function 'plotSpec' for input arguments of type 'double'

48 vues (au cours des 30 derniers jours)
Bahaa Algebory
Bahaa Algebory le 29 Juil 2016
Commenté : Walter Roberson le 26 Août 2019
Hello,
The following code should give the following graph, but there is an error appearing which is "Undefined function 'plotSpec' for input arguments of type 'double'." So, any one knows what is the problem?
Thanks,
f=10;
time=2;
Ts=1/1000;
t=Ts:Ts:time;
x=sign(cos(2*pi*f*t));
plotSpec(x,Ts)

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Juil 2016
plotSpec is not a function in any MATLAB toolbox.
I find plotspec (lower case 'S') defined in a couple of user-contributed files that look like homework; the files vary too much to say that "plotspec" has a well-defined purpose.

Plus de réponses (1)

Ronald Leon
Ronald Leon le 25 Août 2019
Hi i tried even the lower case one but still says error in plot spec

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by