How to use ezplot
6 ビュー (過去 30 日間)
古いコメントを表示
Hi im new to matlab, ive tried ez plot but it wont run x^2 - 9y^2=81. Can someone help?
0 件のコメント
回答 (2 件)
Walter Roberson
2020 年 8 月 10 日
https://www.mathworks.com/help/matlab/ref/fimplicit.html is recommended these days.
ezplot(@(x,y)x.^2 - 9*y.^2 - 81)
0 件のコメント
Star Strider
2020 年 8 月 10 日
編集済み: Star Strider
2020 年 8 月 10 日
The ezsurf (and fsurf) functions accept only single-variable functions.
Try this:
figure
ezcontour(@(x,y) x^2 - 9*y^2 - 81, [-10 10 -10 10])
the fcontour, ezsurf and fsurf functions are also options.
Make appropriate changes to get the result you want.
EDIT — (9 Aug 2020 at 4:15)
Another possibility:
figure
hec = ezcontour(@(x,y) x^2 - 9*y^2, [-50 50 -50 50]);
hec.LevelList = 81;
.
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!