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

Subject: plotting

From: Mallu

Date: 16 Jan, 2009 05:07:01

Message: 1 of 3

Hi,
I have a small doubt, the thing is that I have divided a circle into 6 sectors and for each sector I have got one time signal reading , then I converted the polar coordinates into cartesian form. For each sector the X is an 1XnN array and Y is also an 1XN array, but the signal i.e the amplitude Z i have it as a N X N matrix .
How can I plot it in 2D where the amplitude should also be represented.
With Regards,
Mallu

Subject: plotting

From: Sadik

Date: 16 Jan, 2009 05:21:02

Message: 2 of 3

"Mallu " <s_naik51@yahoo.co.in> wrote in message <gkp4ll$bco$1@fred.mathworks.com>...
> Hi,
> I have a small doubt, the thing is that I have divided a circle into 6 sectors and for each sector I have got one time signal reading , then I converted the polar coordinates into cartesian form. For each sector the X is an 1XnN array and Y is also an 1XN array, but the signal i.e the amplitude Z i have it as a N X N matrix .
> How can I plot it in 2D where the amplitude should also be represented.
> With Regards,
> Mallu

I hope imagesc with a colorbar should work for you. The colorbar will represent the increasing values of the amplitude.

imagesc(Z);
colorbar;

Hope this helps.

Subject: plotting

From: Sadik

Date: 16 Jan, 2009 05:31:01

Message: 3 of 3

"Mallu " <s_naik51@yahoo.co.in> wrote in message <gkp4ll$bco$1@fred.mathworks.com>...
> Hi,
> I have a small doubt, the thing is that I have divided a circle into 6 sectors and for each sector I have got one time signal reading , then I converted the polar coordinates into cartesian form. For each sector the X is an 1XnN array and Y is also an 1XN array, but the signal i.e the amplitude Z i have it as a N X N matrix .
> How can I plot it in 2D where the amplitude should also be represented.
> With Regards,
> Mallu

Oh, of course, if you would like to see x and y values as well, which should be the case, then you should write

imagesc(x,y,z)

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