How to add histgram in a 'slice' figure?

3 views (last 30 days)
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?

Accepted Answer

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!