Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plot Cylindrical coordinates
Date: Thu, 1 Jan 2009 18:43:02 +0000 (UTC)
Organization: Mitre Corp
Lines: 23
Message-ID: <gjj2rm$pao$1@fred.mathworks.com>
References: <27115565.1230826478876.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1230835382 25944 172.30.248.37 (1 Jan 2009 18:43:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 1 Jan 2009 18:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2318
Xref: news.mathworks.com comp.soft-sys.matlab:509431

Lorenzo <liquidcrystal@tiscali.it> wrote in message <27115565.1230826478876.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hi everybody and happy new year!
> 
> I need to plot some pressure values upon a circle, so I have to work in cylindrical coordinates, ma I couldn't find a way to do it...
> 
> The problem is this: I have the pressures values taken at some point upon the cylinder surface, the values I have are simple scalar, so I have a pressure vector: P=[p1 p2 p3 p4...] and every pressure value is taken for a certain angle upon the circular cylinder surface, TH=[th1 th2 th3 th4...] so what I want is: draw a circle (and I know how to do it) and then plot every pressure value for every angle starting from the circle border and going away from it...
> Any idea?
> 
> Thanx
> 
> Lorenzo

% use pol2cart to convert from cylindrical to cartesian:

doc pol2cart

% then plot the surface using meshgrid and contour, surf, etc.

doc meshgrid
doc contour
doc contourf
doc surf