How do I generate an equipotential plot?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Peter Wung
am 3 Sep. 2014
Kommentiert: Star Strider
am 3 Sep. 2014
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.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 3 Sep. 2014
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:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!