Path: news.mathworks.com!not-for-mail
From: "Anthony " <aeraym@Umich.edu>
Newsgroups: comp.soft-sys.matlab
Subject: How to rotate a 2D plot around an axis to create a 3D plot?
Date: Wed, 17 Apr 2013 00:49:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <kkkri4$lvo$1@newscl01ah.mathworks.com>
Reply-To: "Anthony " <aeraym@Umich.edu>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1366159748 22520 172.30.248.47 (17 Apr 2013 00:49:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 17 Apr 2013 00:49:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3312274
Xref: news.mathworks.com comp.soft-sys.matlab:793679

Let's say I have a simple gaussian defined by:

x=-1:.01:1;
y=exp(-10*(x-.5).^2);

Is there a simple way to create, from this, the plot that would result by rotating this around x=0? It would be a 3D plot that looks like a donut.

Thanks for the help!