Assistance with contour plot?
21 ビュー (過去 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!