How to add histgram in a 'slice' figure?

5 ビュー (過去 30 日間)
changkun
changkun 2014 年 4 月 22 日
コメント済み: Walter Roberson 2014 年 4 月 26 日
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?

採用された回答

Walter Roberson
Walter Roberson 2014 年 4 月 22 日
hold on
hist(Z(:)); %example histogram
  2 件のコメント
changkun
changkun 2014 年 4 月 23 日
編集済み: changkun 2014 年 4 月 23 日
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 2014 年 4 月 26 日
That looks to me like a colorbar() rather than a histogram.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by