Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Line between two points on a sphere
Date: Tue, 24 Jul 2012 12:22:08 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 16
Message-ID: <jum41g$q60$1@newscl01ah.mathworks.com>
References: <hopnd6$19c$1@fred.mathworks.com> <hoqmkn$871$1@fred.mathworks.com> <dc084b59-3128-495b-8814-1e50bbe98b29@k21g2000vbj.googlegroups.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1343132528 26816 172.30.248.46 (24 Jul 2012 12:22:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 24 Jul 2012 12:22:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:774755

Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <dc084b59-3128-495b-8814-1e50bbe98b29@k21g2000vbj.googlegroups.com>...
> 
> You mean
> 
> t=linspace(0,1,10);
> plot3(x1+t*(x2-x1),y1+t*(y2-y1),z1+t*(z2-z1));
> 

I think visually:

plot3([x1 x2],[y1 y2],[z1 z2]); %or
line([x1 x2],[y1 y2],[z1 z2]);

would look more or less the similar, but without surcharging the internal graphic data.

% Bruno