x^2 + y^2 =9
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code
0 Kommentare
Antworten (1)
Dimitris Kalogiros
am 29 Okt. 2019
Bearbeitet: Dimitris Kalogiros
am 29 Okt. 2019
This equation depicts a circle with radious 3.
clc; clearvars;
syms x y
eq= x^2+y^2==9
fimplicit(eq, [-3 3]);
xlabel('x'); ylabel('y');
ax=gca;
ax.YAxisLocation='origin'; ax.XAxisLocation='origin' ;
ax.XLim=[-5 5]; ax.YLim=[-5 5];
clc; clearvars;
ci=@(x,y) x.^2+y.^2-9;
fimplicit(ci, [-3 3 -3 3]);
xlabel('x'); ylabel('y');
ax=gca;
ax.YAxisLocation='origin'; ax.XAxisLocation='origin' ;
ax.XLim=[-5 5]; ax.YLim=[-5 5];
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!