Akzeptierte Antwort

Star Strider
Star Strider am 8 Jul. 2017

2 Stimmen

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.

Weitere Antworten (1)

Deepak Kumar
Deepak Kumar am 13 Mär. 2021

0 Stimmen

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by