Assistance with contour plot?
4 次查看(过去 30 天)
显示 更早的评论

I'm trying to get the above contour, but I can only get the contour below.

Do you have any suggestions? The code I am using is :
f = @(x,y) x*y;
fcontour(f)
2 个评论
Star Strider
2019-9-25
Except for the labels, they appear to be the same contour plot.
What differences between them do you see?
回答(1 个)
Ankit
2019-9-25
Hello Claire,
Just have a look here:
Regards
Ankit
2 个评论
Ankit
2019-9-26
Then I think your question is not clear to me. From the above two plots it seems like you need to have labels in your plot. What exactly is your requirement?
f = @(x,y) x*y;
hfc = fcontour(f);
contour(hfc.XData, hfc.YData, hfc.ZData, 'ShowText','on')
fcontour(f)

另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!