範囲の中から最大値や最小値を表示したいです。
이전 댓글 표시
現在、以下のソースを用いて分布の表示をしているのですが、適当に範囲を設定してその中の最大値や最小値、
また放射線治療で用いられる線量体積ヒストグラム(Dose Volume Histgram)のようなものを表示したいと考えているのですが、
どうすればよろしいでしょうか。
clear ;close all;clc
warning off;
[Xtest,Ytest,Ztest] = meshgrid(-9:1:9); %Xtest,Ytest,Ztest座標に-9~9まで1刻みの箱を作成
V=zeros(19,19,19);
p=-0.0444*(sqrt(Xtest(:,:,4).^2+Ytest(:,:,4).^2)).^2 + 0.1857*sqrt(Xtest(:,:,4).^2+Ytest(:,:,4).^2) + 3.55;
for a=10:14;
p=p-0.5;
V(:,:,a)=p;
end
for b=6:10;
p=p+0.5;
V(:,:,b)=p;
end
xslice = [0];
yslice = [-9,0,9];
zslice = [0];
h = slice(Xtest,Ytest,Ztest,V,xslice,[],zslice);
xlabel('X');ylabel('Y');zlabel('Z');
caxis([min(V(:)) max(V(:))])
axis equal
set(h,'EdgeColor','none','FaceColor','interp',...
'FaceAlpha','interp')
alpha('color')
alphamap('increase',.3)
rotate3d
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!