x^2 + y^2 =9
    22 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code
0 件のコメント
回答 (2 件)
  Dimitris Kalogiros
      
 2019 年 10 月 29 日
        
      編集済み: Dimitris Kalogiros
      
 2019 年 10 月 29 日
  
      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 件のコメント
  Image Analyst
      
      
 2024 年 5 月 11 日
        viscircles([0,0], 3); % Plot circle centered at (0,0) and with radius 3
grid on; % Show gridlines
axis square % Make sure it's square and not elliptical by making x and y scale the same
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Calculus についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



