Triangle, sawtooth plot
19 ビュー (過去 30 日間)
古いコメントを表示
Ruslanas Kryzanauskas
2022 年 12 月 11 日
コメント済み: Ruslanas Kryzanauskas
2022 年 12 月 11 日
Hello, how to write these formulas in screenshot for plotting. As I understand I have to get triangle and sawtooth wave plots, but i am not getting that: The code I use:
f = 1
t=0:0.01:5;
y = 4|F*t-[floor(F*t+1/2)]|-1;
plot(t,y)
f = 0.2
t=0:0.01:5;
y = 2*((F*t))%1/2))f-1;
plot(t,y)

0 件のコメント
採用された回答
VBBV
2022 年 12 月 11 日
f = 1
t=0:0.01:5;
y = 4*abs(f*t-[floor(f*t+1/2)])-1;
plot(t,y)
f = 0.2
t= 0:0.01:5;
y = 2*(mod((f*t),1/2))*f - 1;
plot(t,y,'linewidth',2);
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

