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

11 ビュー (過去 30 日間)
Bahaa Algebory
Bahaa Algebory 2016 年 7 月 29 日
コメント済み: Walter Roberson 2019 年 8 月 26 日
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)

採用された回答

Walter Roberson
Walter Roberson 2016 年 7 月 29 日
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.

その他の回答 (1 件)

Ronald Leon
Ronald Leon 2019 年 8 月 25 日
Hi i tried even the lower case one but still says error in plot spec

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by