2次元上で楕円を描くにはどのようにしたらよいでしょうか。
显示 更早的评论
回答(1 个)
Akira Agata
2020-10-8
いろいろなやり方がありますが、たとえば陰関数をプロットする fimplicit 関数を使う方法はいかがでしょうか?
一例として、楕円をあらわす方程式 (x/a)^2 + (y/b)^2 = 1 を a=5, b=2 としてプロットすると以下のようになります。
a = 5;
b = 2;
fnc = @(x,y) (x/a).^2 + (y/b).^2 -1;
figure
fimplicit(fnc)
ylim([-5 5])
grid on

类别
在 帮助中心 和 File Exchange 中查找有关 2 次元および 3 次元プロット 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!