Path: news.mathworks.com!not-for-mail
From: Christopher Creutzig <Christopher.Creutzig@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Line between two points on a sphere
Date: Thu, 26 Jul 2012 08:41:00 +0200
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <5010E67C.4070308@mathworks.com>
References: <hopnd6$19c$1@fred.mathworks.com> <hoqmkn$871$1@fred.mathworks.com> <dc084b59-3128-495b-8814-1e50bbe98b29@k21g2000vbj.googlegroups.com> <jum41g$q60$1@newscl01ah.mathworks.com> <juma6d$mk0$1@newscl01ah.mathworks.com> <jumap6$ote$1@newscl01ah.mathworks.com> <juo7ib$aee$1@newscl01ah.mathworks.com> <500FD813.3040203@mathworks.com> <juon2c$2t6$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: pad-ccreutzi-maci.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: newscl01ah.mathworks.com 1343284860 10111 172.16.195.118 (26 Jul 2012 06:41:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jul 2012 06:41:00 +0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To: <juon2c$2t6$1@newscl01ah.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:774954

On 25.07.12 13:59, Vinita wrote:

> That is great. i wanted to ask one thing though. If I dont do this part
>    sphere
>    alpha(0.1)
> but proceed with the rest of the code, would the points thus generated still lie on an invisible sphere.

Sure. They would also do that if you didn't plot anything at all, and
you can change the 4 in the randn(4,3) call to whatever number of points
you need (and the 3 to whatever number of dimensions you want).


Christopher