y = e^(-x^2)

조회 수: 11 (최근 30일)
fahad
fahad 2012년 11월 15일
댓글: Walter Roberson 2023년 6월 14일
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 15일
x=0:0.1:10;
y=exp(-x.^2);
plot(x,y)
  댓글 수: 3
Rik
Rik 2021년 10월 9일
Is this the exact code you're using? Because this isn't a valid Matlab syntax.
Steven Lord
Steven Lord 2021년 10월 9일
Take a look at fimplicit3.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Manka'a Abongnwi
Manka'a Abongnwi 2023년 6월 9일

y = be ax sin(bx)(0.012x4 0.15x3 + 0.075x2 + 2.5x)

  댓글 수: 3
Manka'a Abongnwi
Manka'a Abongnwi 2023년 6월 14일
Wow after using the formula given by sir, everything worked well except the place to plot a graph of y and z versus x that's difficult
Walter Roberson
Walter Roberson 2023년 6월 14일
plot3()... except that you do not show any z variable.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by