<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933</link>
    <title>MATLAB Central Newsreader - surfc help</title>
    <description>Feed for thread: surfc help</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 04 Aug 2007 16:25:49 -0400</pubDate>
      <title>Re: surfc help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933#386299</link>
      <author>Shaun</author>
      <description>A little better&lt;br&gt;
&lt;br&gt;
sh = surfc(peaks(32));&lt;br&gt;
zLevel = 15;&lt;br&gt;
ph = findobj(sh,'Type','patch');&lt;br&gt;
pv = get(ph,'zdata');&lt;br&gt;
pv = cellfun(@(x)zLevel+x*0,pv,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'UniformOutput',false);&lt;br&gt;
pn = {'zdata'};&lt;br&gt;
set(ph,pn,pv,'LineWidth',2)&lt;br&gt;
&lt;br&gt;
Shaun&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 04 Aug 2007 03:29:58 -0400</pubDate>
      <title>Re: surfc help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933#386268</link>
      <author>Shaun</author>
      <description>Another way&lt;br&gt;
&lt;br&gt;
sh = surfc(peaks(32));&lt;br&gt;
zLevel = 15;&lt;br&gt;
ph = findobj(sh,'Type','patch');&lt;br&gt;
zlim = get(gca,'ZLim');&lt;br&gt;
pv = get(ph,'zdata');&lt;br&gt;
pv = cellfun(@(x)zLevel+x-zlim(1),pv,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'UniformOutput',false);&lt;br&gt;
pn = {'zdata'};&lt;br&gt;
set(ph,pn,pv,'LineWidth',2)&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 03 Aug 2007 21:33:13 -0400</pubDate>
      <title>Re: surfc help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933#386247</link>
      <author>us</author>
      <description>John L:&lt;br&gt;
&amp;lt;SNIP wants to move his/her contours along the z-axis...&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
% the plot&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sh=surfc(peaks(32));&lt;br&gt;
% the engine&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sh=findall(sh,'type','patch');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;zi=get(gca,'zlim');&lt;br&gt;
for  i=1:numel(sh)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;zd=get(sh(i),'zdata');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;zd=zi(2)*ones(size(zd))+5;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(sh(i),'zdata',zd);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(sh(i),'linewidth',2);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 03 Aug 2007 21:26:39 -0400</pubDate>
      <title>Re: surfc help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933#386246</link>
      <author>us</author>
      <description>John L:&lt;br&gt;
&amp;lt;SNIP wants to move his/her contours along the z-axis...&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
% the plot&lt;br&gt;
	sh=surfc(peaks(32));&lt;br&gt;
% the engine&lt;br&gt;
	sh=findall(sh,'type','patch');&lt;br&gt;
	zi=get(gca,'zlim');&lt;br&gt;
for	i=1:numel(sh)&lt;br&gt;
	zd=get(sh(i),'zdata');&lt;br&gt;
	zd=zi(2)*ones(size(zd))+5;&lt;br&gt;
	set(sh(i),'zdata',zd);&lt;br&gt;
	set(sh(i),'linewidth',2);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 03 Aug 2007 21:10:20 -0400</pubDate>
      <title>surfc help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153933#386244</link>
      <author>John L</author>
      <description>Is there any way to take the plane that the contours are &lt;br&gt;
projected on and move it above the rendered surface...this &lt;br&gt;
seems like a logical thing, but I could not find an option &lt;br&gt;
or what not to that effect.&lt;br&gt;
&lt;br&gt;
Thanks for the help,&lt;br&gt;
John&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
