How do you create a plot of a function using fplot?
6 ビュー (過去 30 日間)
古いコメントを表示

f(t)=@(t) 5*t.^2;
fplot(f(t))
why is this wrong?
0 件のコメント
回答 (2 件)
Les Beckham
2022 年 12 月 20 日
Maybe you want ezplot instead of fplot. Your anonymous function definition syntax is wrong as well.
Try this:
f = @(t) 5*t.^2;
ezplot(f)
grid on
0 件のコメント
Voss
2022 年 12 月 20 日
f = @(t)5*t.^2;
fplot(f)
2 件のコメント
Dyuman Joshi
2022 年 12 月 20 日
編集済み: Dyuman Joshi
2022 年 12 月 20 日
Thanks for pointing out. I looked into the documentation of fplot function which is a part of symbolic math toolbox.
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!