Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: calculating z value for mesh plot
Date: Tue, 2 Aug 2011 16:04:08 +0000 (UTC)
Organization: salt lake community college
Lines: 12
Message-ID: <j1975o$mhn$1@newscl01ah.mathworks.com>
References: <iudccu$qbe$1@newscl01ah.mathworks.com> <iudkm3$j15$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1312301048 23095 172.30.248.47 (2 Aug 2011 16:04:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 2 Aug 2011 16:04:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2879799
Xref: news.mathworks.com comp.soft-sys.matlab:738457

"Roger Stafford" wrote in message <iudkm3$j15$1@newscl01ah.mathworks.com>...
> "edward" wrote in message <iudccu$qbe$1@newscl01ah.mathworks.com>...
> > I have 60s load data for 24-hrs (x-coord) and associated value for each time stamp (y-coord)...I can get things to plot well in a standard 2D plot(x,y) but want to plot in 3D w/ a mesh...I am new to matlab and have searched and tested sample code from the web but can't seem to get the correct z value...can anybody give me a hand
> > ...your reading from a real novice so beware of dumb questions
> - - - - - - - - - - - -
>   I have read and reread your request and can find no third dimensional quantity involved in your data.  It looks as though you have one quantity from the "60s load data for 24-hrs" which you called "x-coord" and a corresponding quantity "time stamp" called "y-coord".  I see no third quantity which z could be set to.  What is your idea of the contents of z?  
> 
>   Also it looks as though each x-coord corresponds one-to-one with each y-coord and it would not make sense to make a mesh of them - that is, it would seem highly irrelevant to be pairing the load data that was measured at, say, 8:39 A.M. with the time stamp that read 4:17 P.M.
> 
>   Your 2D plot would seem to exhibit all there is to tell about your problem.  What more do you want to see?
> 
> Roger Stafford