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

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com