How do you create a plot of a function using fplot?

回答 (2 件)

Les Beckham
Les Beckham 2022 年 12 月 20 日

0 投票

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
Voss
Voss 2022 年 12 月 20 日

0 投票

f = @(t)5*t.^2;
fplot(f)

2 件のコメント

Dyuman Joshi
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.
Voss
Voss 2022 年 12 月 20 日
Ahh. Makes sense.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

質問済み:

2022 年 12 月 20 日

コメント済み:

2022 年 12 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by