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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

질문:

2014년 4월 22일

댓글:

2014년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by