How to plot below function f
17 ビュー (過去 30 日間)
古いコメントを表示

0 件のコメント
採用された回答
Star Strider
2019 年 8 月 15 日
This is how I would do it:
f = @(x) (x/4).*((x > 0) & (x < 1)) + (x/3).*(x >= 1);
t = linspace(-5, 5);
figure
plot(t, f(t))
grid
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!