How would you plot y=x^(2)e^(-x2)?

17 次查看(过去 30 天)

采纳的回答

Star Strider
Star Strider 2017-7-8
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
Y = 5X³+8X-3÷ 3X²+2

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by