Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Is there any command that could directly plot 3d matrix?

Subject: Is there any command that could directly plot 3d matrix?

From: Yi

Date: 25 Mar, 2010 15:42:04

Message: 1 of 2

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

Subject: Is there any command that could directly plot 3d matrix?

From: Rob Campbell

Date: 25 Mar, 2010 16:20:07

Message: 2 of 2

"Yi " <hvachy@163.com> wrote in message <hog08c$47j$1@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.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us