How do I generate an equipotential plot?

22 ビュー (過去 30 日間)
Peter Wung
Peter Wung 2014 年 9 月 3 日
コメント済み: Star Strider 2014 年 9 月 3 日
I have data in matrix format. The values vary within a finite range.
I would like to generate a 3-D smoothed contour plot, except that I want the regions of equal values values identified and colored in the same color.
What I have is a matricx of efficiencies, I want to identify the region where the efficiencies are above 95%, between 95% and 90%, and so on.

採用された回答

Peter Wung
Peter Wung 2014 年 9 月 3 日
Got it! Thanks. I figured it out by trying out your solution.
  1 件のコメント
Star Strider
Star Strider 2014 年 9 月 3 日
My pleasure!
I sort of wish you’d accepted my answer.

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

その他の回答 (1 件)

Star Strider
Star Strider 2014 年 9 月 3 日
This seems to do what you want:
x = linspace(-5,5);
[X,Y] = meshgrid(x);
M = exp(-(X.^2+Y.^2)/10);
figure(1)
surf(M)
grid on
colormap(jet(20))
colorbar
with ‘M’ the matrix to plot.
It produces:

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by