Path: news.mathworks.com!not-for-mail
From: "Shaun " <s@s.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: surfc help
Date: Sat, 4 Aug 2007 16:25:49 +0000 (UTC)
Organization: Shaun Simmons (ID: 1-21CTFH)
Lines: 13
Message-ID: <f929ad$clg$1@fred.mathworks.com>
References: <f905js$ru7$1@fred.mathworks.com> <f906up$qg7$1@fred.mathworks.com> <f90rrm$n5l$1@fred.mathworks.com>
Reply-To: "Shaun " <s@s.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186244749 12976 172.30.248.35 (4 Aug 2007 16:25:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Aug 2007 16:25:49 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 513223
Xref: news.mathworks.com comp.soft-sys.matlab:422465


A little better

sh = surfc(peaks(32));
zLevel = 15;
ph = findobj(sh,'Type','patch');
pv = get(ph,'zdata');
pv = cellfun(@(x)zLevel+x*0,pv,...
    'UniformOutput',false);
pn = {'zdata'};
set(ph,pn,pv,'LineWidth',2)

Shaun