採用された回答

Star Strider
Star Strider 2017 年 7 月 8 日

2 投票

Try this:
x = linspace(-5, 5);
y = x.^2 .* exp(-(x.^2));
figure(1)
plot(x, y)
grid
Experiment to get the result you want. See the documentation on the various functions for details on what they can do and how to use them.
Also, you must use element-wise operations here. See the documentation on Array vs. Matrix Operations (link) for details.

その他の回答 (1 件)

Deepak Kumar
Deepak Kumar 2021 年 3 月 13 日

0 投票

Y = 5X³+8X-3÷ 3X²+2

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2017 年 7 月 8 日

回答済み:

2021 年 3 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by