채택된 답변

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 Exchange에서 2-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