How to add histgram in a 'slice' figure?

2 vues (au cours des 30 derniers jours)
changkun
changkun le 22 Avr 2014
Commenté : Walter Roberson le 26 Avr 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 22 Avr 2014
hold on
hist(Z(:)); %example histogram
  2 commentaires
changkun
changkun le 23 Avr 2014
Modifié(e) : changkun le 23 Avr 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 le 26 Avr 2014
That looks to me like a colorbar() rather than a histogram.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by