I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 15 Nov. 2012

8 Stimmen

x=0:0.1:10;
y=exp(-x.^2);
plot(x,y)

3 Kommentare

Hamna Aziz
Hamna Aziz am 9 Okt. 2021
(x^2)+3*(y^3)-25*z=100;
i am assigning this eqn a value. but matlab is giving me error every time. how to use this eqn in matlab?
Rik
Rik am 9 Okt. 2021
Is this the exact code you're using? Because this isn't a valid Matlab syntax.
Steven Lord
Steven Lord am 9 Okt. 2021
Take a look at fimplicit3.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Manka'a Abongnwi
Manka'a Abongnwi am 9 Jun. 2023

0 Stimmen

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

3 Kommentare

Walter Roberson
Walter Roberson am 9 Jun. 2023
y = b.*exp(a.*x).*sin(a.*x).*(0.012*x.^4 + 0.075*x.^2 + 2.5*x);

Possibly

Manka'a Abongnwi
Manka'a Abongnwi am 14 Jun. 2023
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 am 14 Jun. 2023
plot3()... except that you do not show any z variable.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by