From: Yi on
Hey all matlab lovers:

I have many 3d matrixm like

A(:,:,:) 50x50x50

Is there any command that I could use to plot this 3d matrix A?

Thanks

Yi
From: Rob Campbell on
"Yi " <hvachy(a)163.com> wrote in message <hog08c$47j$1(a)fred.mathworks.com>...
> Hey all matlab lovers:
>
> I have many 3d matrixm like
>
> A(:,:,:) 50x50x50
>
> Is there any command that I could use to plot this 3d matrix A?
3-D visualisation can be tricky. Go to the documentation:
Matlab > User Guide > 3-D Visualization

The section on volume visualisation may be what you want. You can take slices through your space or generate 3-D iso-surfaces. You could even do:

while 1
for ii=1:size(A,3), imagesc(A(:,:,ii), drawnow, pause(0.1), end
end

There's also some stuff on the FEX which may help for navigating slices in your space.