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 10:35:03 +0000 (UTC)
Organization: Universit&#228;t Basel
Lines: 23
Message-ID: <gerssn$3eh$1@fred.mathworks.com>
References: <db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225881303 3537 172.30.248.38 (5 Nov 2008 10:35:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 5 Nov 2008 10:35:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870595
Xref: news.mathworks.com comp.soft-sys.matlab:499034


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