Help with contours at maximum z-level in surfc

1 回表示 (過去 30 日間)
Brantosaurus
Brantosaurus 2022 年 10 月 10 日
コメント済み: Star Strider 2022 年 10 月 10 日
How might i achieve it with the following in matlab 2020a:
[X,Y,Z] = peaks(50);
figure
hsc = surfc(X,Y,Z)
colormap jet
colorbar
hsc(2).LevelList = -7:1:8;
hsc(2).ZLocation = 'zmax';
Last line produces 'Unrecognized property 'ZLocation' for class 'matlab.graphics.chart.primitive.Contour'.

採用された回答

Star Strider
Star Strider 2022 年 10 月 10 日
I asked about this a while ago, and received a repl;y from MathWorks that I sent along to Yair Altman for inclusion in Undocumented MATLAB. See Customizing contour plots part 2 for an approach that will likely work in R2020a.
.
  2 件のコメント
Brantosaurus
Brantosaurus 2022 年 10 月 10 日
Thank you. That helped :)
Star Strider
Star Strider 2022 年 10 月 10 日
As always, my pleasure!
If I remember correctly, it was another question on those same lines that prompted me to ask MathWorks. I sent it along to Yair because I was confident that I would likely lose the reference and that Yair would not!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by