Filter löschen
Filter löschen

How to add histgram in a 'slice' figure?

5 Ansichten (letzte 30 Tage)
changkun
changkun am 22 Apr. 2014
Kommentiert: Walter Roberson am 26 Apr. 2014
figure;clf
[X Y Z V] = flow;
x1 = min(min(min(X)));x2 = max(max(max(X)));
y1 = min(min(min(Y)));y2 = max(max(max(Y)));
z1 = min(min(min(Z)));z2 = max(max(max(Z)));
sx = linspace(x1+1.2,x2,5);
sy = 0;
sz = 0;
slice(X,Y,Z,V,sx,sy,sz);
view([-33,36])
shading interp;
'flow' is a array defined on the three dimensional space, 'slice' function can realize four-dimensional performance. However, not only I need a section, but also I urgent need a histgram. I want to know how to realize it?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 22 Apr. 2014
hold on
hist(Z(:)); %example histogram
  2 Kommentare
changkun
changkun am 23 Apr. 2014
Bearbeitet: changkun am 23 Apr. 2014
Thank you for your answer! My question may not be clear enough.The figure below is a geological structural model built by Function Slice. I want to add a borehole(or histogram) on this basis. This problem bothering me for a long time.
Walter Roberson
Walter Roberson am 26 Apr. 2014
That looks to me like a colorbar() rather than a histogram.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by