範囲の中から最大値や最小値を表示したいです。
Show older comments
現在、以下のソースを用いて分布の表示をしているのですが、適当に範囲を設定してその中の最大値や最小値、
また放射線治療で用いられる線量体積ヒストグラム(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
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!