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:
plot 3d from matrix2d

Subject: plot 3d from matrix2d

From: zac

Date: 15 Jul, 2010 19:24:04

Message: 1 of 3

Hello,

i would like to make plot3d from my matrix.
The x and y are positions and the elements of matrix are heights:
 I would like to present results as a bar charts like example below.

http://yfrog.com/86rysunek1jj

Thanks for any advice.
Regards,
ZacAdi

Subject: plot 3d from matrix2d

From: Sean

Date: 15 Jul, 2010 19:40:21

Message: 2 of 3

"zac " <sony_1000@o2.pl> wrote in message <i1nn8k$5dv$1@fred.mathworks.com>...
> Hello,
>
> i would like to make plot3d from my matrix.
> The x and y are positions and the elements of matrix are heights:
> I would like to present results as a bar charts like example below.
>
> http://yfrog.com/86rysunek1jj
>
> Thanks for any advice.
> Regards,
> ZacAdi

a hint:
>>help bar3

Subject: plot 3d from matrix2d

From: zac

Date: 16 Jul, 2010 13:04:05

Message: 3 of 3

"Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <i1no75$7nb$1@fred.mathworks.com>...
> "zac " <sony_1000@o2.pl> wrote in message <i1nn8k$5dv$1@fred.mathworks.com>...
> > Hello,
> >
> > i would like to make plot3d from my matrix.
> > The x and y are positions and the elements of matrix are heights:
> > I would like to present results as a bar charts like example below.
> >
> > http://yfrog.com/86rysunek1jj
> >
> > Thanks for any advice.
> > Regards,
> > ZacAdi
>
> a hint:
> >>help bar3

Thanks a lot! That was very helpfull.

But i have enother question.
For example i have a matrix with 3 values in it (for example matrix have only "1", "5" and "10".
The command bar3 make 3 box in the plot. But the colours are very strange.
How can i make that that three values have three colour - for example every "1" make to red, "5" to green and "10" to "blue"?

Regards,
ZaC

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