error:Undefined function or variable 'sawtooth'.
5 ビュー (過去 30 日間)
古いコメントを表示
T = 10*(1/50);
fs = 1000;
t = 0:1/fs:T-1/fs;
x = sawtooth(2*pi*50*t);
plot(t,x)

grid on
3 件のコメント
採用された回答
Walter Roberson
2020 年 12 月 25 日
sawtooth() is part of the Signal Processing Toolbox
3 件のコメント
Walter Roberson
2020 年 12 月 25 日
sawtooth was supported in R2015a.
I do not have the link for the R2015a documentation, but the R2015b documentation link is https://www.mathworks.com/help/releases/R2015b/signal/ref/sawtooth.html
and the function is marked as existing before R2006a.
You do, however, need to have the Communications Systems Toolbox installed and licensed in order to use it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!