How to use ezplot
8 次查看(过去 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!