error:Undefined function or variable 'sawtooth'.
4 次查看(过去 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!