plotting 3D edge in matlab -
i have 3d matrix of mri image , used matlab border function , gave me 3d matrix follow of points 1 (means edges).
i want show surface in matlab don't know how should this. know should utilize surf.
as @bdecaf said, can utilize find
determine height of points, or in other words, in of 100 layers point lie. can follows:
z1=zeros(30,100); temp=find(b); [row,col,layer]=ind2sub(size(b),temp); i=1:size(x,1) z1(row(i),col(i))=layer(i); end
you can image follows:
matlab
No comments:
Post a Comment