Got Questions? Get Answers.
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:
Need something better than surf ( plot ) - for visualizing 2D Matrix !

Subject: Need something better than surf ( plot ) - for visualizing 2D Matrix !

From: printer newbie!

Date: 23 Aug, 2011 17:28:00

Message: 1 of 3

Hi all,

Please advice:

A =

         0 0.5000 1.0000
         0 0.5000 0
         0 1.0000 1.0000

>> surf(A)
>> colorbar
>> view(0,90)
>> shg

Shows some kind of interpolated matrix (?) of size 2 x 2, but I want
exactly this kind of plot but for size 3 x 3 - how to achieve this
effect of showing this with 3 x 3 in the plot?

I hope my question is understandable - please advice...

Subject: Need something better than surf ( plot ) - for visualizing 2D Matrix !

From: Bruno Luong

Date: 23 Aug, 2011 18:49:26

Message: 2 of 3

"printer newbie!" <newsboost@gmail.com> wrote in message <0e904095-ae53-4b88-b104-c8f7f1a128d6@br5g2000vbb.googlegroups.com>...
> Hi all,
>
> Please advice:
>
> A =
>
> 0 0.5000 1.0000
> 0 0.5000 0
> 0 1.0000 1.0000
>


> >> surf(A)
> >> colorbar
> >> view(0,90)
> >> shg
>
> Shows some kind of interpolated matrix (?) of size 2 x 2, but I want
> exactly this kind of plot but for size 3 x 3 - how to achieve this
> effect of showing this with 3 x 3 in the plot?

imagesc(A) ?

Subject: Need something better than surf ( plot ) - for visualizing 2D

From: printer newbie!

Date: 23 Aug, 2011 18:51:15

Message: 3 of 3

On Aug 23, 8:49 pm, "Bruno Luong" <b.lu...@fogale.findmycountry>
wrote:
> "printer newbie!" <newsbo...@gmail.com> wrote in message <0e904095-ae53-4b88-b104-c8f7f1a12...@br5g2000vbb.googlegroups.com>...
> > Hi all,
>
> > Please advice:
>
> > A =
>
> >          0    0.5000    1.0000
> >          0    0.5000         0
> >          0    1.0000    1.0000
>
> > >> surf(A)
> > >> colorbar
> > >> view(0,90)
> > >> shg
>
> > Shows some kind of interpolated matrix (?) of size 2 x 2, but I want
> > exactly this kind of plot but for size 3 x 3 - how to achieve this
> > effect of showing this with 3 x 3 in the plot?
>
> imagesc(A) ?

Ofcourse - thanks a lot!

Tags for this Thread

No tags are associated with 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