From: "Robert Phillips" <>
Newsgroups: comp.soft-sys.matlab
Subject: Generate 3D circle points
Date: Tue, 23 Nov 2010 05:23:03 +0000 (UTC)
Organization: Embry-Riddle Aeronautical University
Lines: 8
Message-ID: <icfj3n$24d$>
Reply-To: "Robert Phillips" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1290489783 2189 (23 Nov 2010 05:23:03 GMT)
NNTP-Posting-Date: Tue, 23 Nov 2010 05:23:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2598083
Xref: comp.soft-sys.matlab:689168

I'm trying to generate the x-, y-, and z-coordinates of a smooth circle (in 3D space). I would like the output to mirror the sphere(n) command, where the coordinates are returned in three matrices that are (n+1)-by-(n+1) in size. I plan to use these points as an input argument for the "InPolyhedronTest" function: 

I will test if these generated points lie within a polyhedron.

I have 3 orthogonal vectors a, b, and c, whose tails all lie at the same point S. These vectors are not aligned with the "global" coordinate system. I wish for the radius of this generated circle to lie in the plane defined by the b and c vectors.

I've searched through the forums and haven't found much that resembles the desired output... Could someone help point me in the right direction?