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:
huge matrix plotting

Subject: huge matrix plotting

From: James

Date: 21 Oct, 2010 14:50:29

Message: 1 of 2

I have a 3600 x 3 matrix with no headers and trying to plot the information in3d an xyz 3d plot and i think that it is reading straight down the columns as xyz,xyz and not column 1 is x and column 2is y. can someone give me a direction. thanks in advance

Subject: huge matrix plotting

From: Sean

Date: 21 Oct, 2010 15:00:06

Message: 2 of 2

"James " <james.shank44@yahoo.com> wrote in message <i9pjvl$cfd$1@fred.mathworks.com>...
> I have a 3600 x 3 matrix with no headers and trying to plot the information in3d an xyz 3d plot and i think that it is reading straight down the columns as xyz,xyz and not column 1 is x and column 2is y. can someone give me a direction. thanks in advance


M = your_matrix;
plot3(M(:,1),M(:,2),M(:,3))

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