<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697</link>
    <title>MATLAB Central Newsreader - plot3 with color according to z-value?</title>
    <description>Feed for thread: plot3 with color according to z-value?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 05 Nov 2008 10:22:54 -0500</pubDate>
      <title>plot3 with color according to z-value?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697#609106</link>
      <author>jdellanna@web.de</author>
      <description>Hi there!&lt;br&gt;
I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way&lt;br&gt;
that the color changes specified by the z-values. I tried already&lt;br&gt;
plot3, surf, surface, mesh and scatter3. With plot3 the data are&lt;br&gt;
displayed in the way I want, but not with changing color. And with&lt;br&gt;
surf, surface, mesh and scatter3 I get changing color, but the x- and&lt;br&gt;
y- axis values are no more according to the x(i) and y(i) coordinate&lt;br&gt;
values but seem to be the index i, so that the projection of the&lt;br&gt;
surface I define with all those xyz-pairs to the x-y-plane is no more&lt;br&gt;
shaped like a rhomb with the correct x,y-values, but a full square&lt;br&gt;
with the number of data pairs as x- and y-values. The optimum for me&lt;br&gt;
would be if I could just change the color in plot3 from single-color&lt;br&gt;
to z-value-dependent. Is that possible? What can I do?&lt;br&gt;
Thanx for your support :-)&lt;br&gt;
Jazz</description>
    </item>
    <item>
      <pubDate>Wed, 05 Nov 2008 10:35:03 -0500</pubDate>
      <title>Re: plot3 with color according to z-value?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697#609111</link>
      <author>Wolfgang Schwanghart</author>
      <description>This might be what you are searching for:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/14677&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/14677&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
Wolfgang&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
jdellanna@web.de wrote in message &amp;lt;db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi there!&lt;br&gt;
&amp;gt; I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way&lt;br&gt;
&amp;gt; that the color changes specified by the z-values. I tried already&lt;br&gt;
&amp;gt; plot3, surf, surface, mesh and scatter3. With plot3 the data are&lt;br&gt;
&amp;gt; displayed in the way I want, but not with changing color. And with&lt;br&gt;
&amp;gt; surf, surface, mesh and scatter3 I get changing color, but the x- and&lt;br&gt;
&amp;gt; y- axis values are no more according to the x(i) and y(i) coordinate&lt;br&gt;
&amp;gt; values but seem to be the index i, so that the projection of the&lt;br&gt;
&amp;gt; surface I define with all those xyz-pairs to the x-y-plane is no more&lt;br&gt;
&amp;gt; shaped like a rhomb with the correct x,y-values, but a full square&lt;br&gt;
&amp;gt; with the number of data pairs as x- and y-values. The optimum for me&lt;br&gt;
&amp;gt; would be if I could just change the color in plot3 from single-color&lt;br&gt;
&amp;gt; to z-value-dependent. Is that possible? What can I do?&lt;br&gt;
&amp;gt; Thanx for your support :-)&lt;br&gt;
&amp;gt; Jazz</description>
    </item>
    <item>
      <pubDate>Wed, 05 Nov 2008 13:37:01 -0500</pubDate>
      <title>Re: plot3 with color according to z-value?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697#609140</link>
      <author>Jasmin DellAnna</author>
      <description>Thanx alot!! That's exactly what I was looking for :-)&lt;br&gt;
Best regards,&lt;br&gt;
Jazz&lt;br&gt;
&lt;br&gt;
&quot;Wolfgang Schwanghart&quot; &amp;lt;schwanghartremove.this@googlemail.com&amp;gt; wrote in message &amp;lt;gerssn$3eh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; This might be what you are searching for:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/14677&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/14677&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Best regards,&lt;br&gt;
&amp;gt; Wolfgang&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; jdellanna@web.de wrote in message &amp;lt;db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi there!&lt;br&gt;
&amp;gt; &amp;gt; I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way&lt;br&gt;
&amp;gt; &amp;gt; that the color changes specified by the z-values. I tried already&lt;br&gt;
&amp;gt; &amp;gt; plot3, surf, surface, mesh and scatter3. With plot3 the data are&lt;br&gt;
&amp;gt; &amp;gt; displayed in the way I want, but not with changing color. And with&lt;br&gt;
&amp;gt; &amp;gt; surf, surface, mesh and scatter3 I get changing color, but the x- and&lt;br&gt;
&amp;gt; &amp;gt; y- axis values are no more according to the x(i) and y(i) coordinate&lt;br&gt;
&amp;gt; &amp;gt; values but seem to be the index i, so that the projection of the&lt;br&gt;
&amp;gt; &amp;gt; surface I define with all those xyz-pairs to the x-y-plane is no more&lt;br&gt;
&amp;gt; &amp;gt; shaped like a rhomb with the correct x,y-values, but a full square&lt;br&gt;
&amp;gt; &amp;gt; with the number of data pairs as x- and y-values. The optimum for me&lt;br&gt;
&amp;gt; &amp;gt; would be if I could just change the color in plot3 from single-color&lt;br&gt;
&amp;gt; &amp;gt; to z-value-dependent. Is that possible? What can I do?&lt;br&gt;
&amp;gt; &amp;gt; Thanx for your support :-)&lt;br&gt;
&amp;gt; &amp;gt; Jazz</description>
    </item>
    <item>
      <pubDate>Wed, 05 Nov 2008 14:45:46 -0500</pubDate>
      <title>Re: plot3 with color according to z-value?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697#609165</link>
      <author>russell.fung@gmail.com</author>
      <description>On Nov 5, 4:35=A0am, &quot;Wolfgang Schwanghart&quot;&lt;br&gt;
&amp;lt;schwanghartremove.t...@googlemail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; This might be what you are searching for:&lt;a href=&quot;http://www.mathworks.com/matlabc=&quot;&gt;http://www.mathworks.com/matlabc=&lt;/a&gt;&lt;br&gt;
entral/fileexchange/14677&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Best regards,&lt;br&gt;
&amp;gt; Wolfgang&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; jdella...@web.de wrote in message &amp;lt;db855997-a73b-4230-83a8-e6a152e8d...@q=&lt;br&gt;
30g2000prq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi there!&lt;br&gt;
&amp;gt; &amp;gt; I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way&lt;br&gt;
&amp;gt; &amp;gt; that the color changes specified by the z-values. I tried already&lt;br&gt;
&amp;gt; &amp;gt; plot3, surf, surface, mesh and scatter3. With plot3 the data are&lt;br&gt;
&amp;gt; &amp;gt; displayed in the way I want, but not with changing color. And with&lt;br&gt;
&amp;gt; &amp;gt; surf, surface, mesh and scatter3 I get changing color, but the x- and&lt;br&gt;
&amp;gt; &amp;gt; y- axis values are no more according to the x(i) and y(i) coordinate&lt;br&gt;
&amp;gt; &amp;gt; values but seem to be the index i, so that the projection of the&lt;br&gt;
&amp;gt; &amp;gt; surface I define with all those xyz-pairs to the x-y-plane is no more&lt;br&gt;
&amp;gt; &amp;gt; shaped like a rhomb with the correct x,y-values, but a full square&lt;br&gt;
&amp;gt; &amp;gt; with the number of data pairs as x- and y-values. The optimum for me&lt;br&gt;
&amp;gt; &amp;gt; would be if I could just change the color in plot3 from single-color&lt;br&gt;
&amp;gt; &amp;gt; to z-value-dependent. Is that possible? What can I do?&lt;br&gt;
&amp;gt; &amp;gt; Thanx for your support :-)&lt;br&gt;
&amp;gt; &amp;gt; Jazz&lt;br&gt;
&lt;br&gt;
You can use the mesh command with three inputs X, Y, Z.&lt;br&gt;
&lt;br&gt;
X and Y here can be generated from your x(i), y(i) values using&lt;br&gt;
meshgrid.</description>
    </item>
    <item>
      <pubDate>Thu, 06 Nov 2008 20:03:03 -0500</pubDate>
      <title>Re: plot3 with color according to z-value?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238697#609440</link>
      <author>Ken Garrard</author>
      <description>Try plot3k from the FEX,&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/9519&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/9519&lt;/a&gt;&lt;br&gt;
Ken&lt;br&gt;
&lt;br&gt;
jdellanna@web.de wrote in message &amp;lt;db855997-a73b-4230-83a8-e6a152e8d56e@q30g2000prq.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi there!&lt;br&gt;
&amp;gt; I want to plot a pack of data with structure [x(i) y(i) z(i)] in a way&lt;br&gt;
&amp;gt; that the color changes specified by the z-values. I tried already&lt;br&gt;
&amp;gt; plot3, surf, surface, mesh and scatter3. With plot3 the data are&lt;br&gt;
&amp;gt; displayed in the way I want, but not with changing color. And with&lt;br&gt;
&amp;gt; surf, surface, mesh and scatter3 I get changing color, but the x- and&lt;br&gt;
&amp;gt; y- axis values are no more according to the x(i) and y(i) coordinate&lt;br&gt;
&amp;gt; values but seem to be the index i, so that the projection of the&lt;br&gt;
&amp;gt; surface I define with all those xyz-pairs to the x-y-plane is no more&lt;br&gt;
&amp;gt; shaped like a rhomb with the correct x,y-values, but a full square&lt;br&gt;
&amp;gt; with the number of data pairs as x- and y-values. The optimum for me&lt;br&gt;
&amp;gt; would be if I could just change the color in plot3 from single-color&lt;br&gt;
&amp;gt; to z-value-dependent. Is that possible? What can I do?&lt;br&gt;
&amp;gt; Thanx for your support :-)&lt;br&gt;
&amp;gt; Jazz</description>
    </item>
  </channel>
</rss>

