Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!q30g2000prq.googlegroups.com!not-for-mail
From: jdellanna@web.de
Newsgroups: comp.soft-sys.matlab
Subject: plot3 with color according to z-value?
Date: Wed, 5 Nov 2008 02:22:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 15
Message-ID: <db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com>
NNTP-Posting-Host: 137.226.27.220
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1225880574 29661 127.0.0.1 (5 Nov 2008 10:22:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 5 Nov 2008 10:22:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q30g2000prq.googlegroups.com; posting-host=137.226.27.220; 
	posting-account=NZdb5AoAAAABOlt3LueDZxcs1XVmlUkb
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.3) 
	Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe)
Bytes: 1945
Xref: news.mathworks.com comp.soft-sys.matlab:499029


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