Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plot3 with color according to z-value?
Date: Wed, 5 Nov 2008 13:37:01 +0000 (UTC)
Organization: RWTH Aachen
Lines: 28
Message-ID: <ges7ht$jt9$1@fred.mathworks.com>
References: <db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com> <gerssn$3eh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225892221 20393 172.30.248.35 (5 Nov 2008 13:37:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 5 Nov 2008 13:37:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1587251
Xref: news.mathworks.com comp.soft-sys.matlab:499063


Thanx alot!! That's exactly what I was looking for :-)
Best regards,
Jazz

"Wolfgang Schwanghart" <schwanghartremove.this@googlemail.com> wrote in message <gerssn$3eh$1@fred.mathworks.com>...
> This might be what you are searching for:
> http://www.mathworks.com/matlabcentral/fileexchange/14677
> 
> Best regards,
> Wolfgang
> 
> 
> jdellanna@web.de wrote in message <db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com>...
> > Hi there!
> > I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way
> > that the color changes specified by the z-values. I tried already
> > plot3, surf, surface, mesh and scatter3. With plot3 the data are
> > displayed in the way I want, but not with changing color. And with
> > surf, surface, mesh and scatter3 I get changing color, but the x- and
> > y- axis values are no more according to the x(i) and y(i) coordinate
> > values but seem to be the index i, so that the projection of the
> > surface I define with all those xyz-pairs to the x-y-plane is no more
> > shaped like a rhomb with the correct x,y-values, but a full square
> > with the number of data pairs as x- and y-values. The optimum for me
> > would be if I could just change the color in plot3 from single-color
> > to z-value-dependent. Is that possible? What can I do?
> > Thanx for your support :-)
> > Jazz