From: "Eyal Fleminger" <>
Newsgroups: comp.soft-sys.matlab
Subject: 3D plotting of a partial sphere
Date: Sun, 25 Apr 2010 16:57:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <hr1s91$qtv$>
Reply-To: "Eyal Fleminger" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1272214625 27583 (25 Apr 2010 16:57:05 GMT)
NNTP-Posting-Date: Sun, 25 Apr 2010 16:57:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2138036
Xref: comp.soft-sys.matlab:629646

I am trying to plot a 3D volume defined as part of a sphere. The volume is defined by six numbers in spherical coordinates (r, el & az): minimum/maximum range, minimum/maximum elevation (from -90 to 90), minimum/maximum azimuth (between 0 and 360). In general, the volume will have the shape of a wedge buth with one concave (at r=minimum range) and one convex (at r=maximum range) face. Particular cases will look different - for example, if minimum range=0, minimum azimuth=0, maximum azimuth=360, minimum elevation=0 and maximum elevation=90 the volume will have the shape of a hemisphere with a radius equal to the maximum range.

I need to plot this volume as a surface or patch. While I know how to plot a sphere or hemisphere (using sphere or ellipsoid), I can't figure out how to define the shape for other cases. I could use convhulln if not for the concave face at r=minimum range.
Can anyone offer any suggestions?