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$>
References: <iudccu$qbe$> <iudkm3$j15$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1312301048 23095 (2 Aug 2011 16:04:08 GMT)
NNTP-Posting-Date: Tue, 2 Aug 2011 16:04:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2879799
Xref: comp.soft-sys.matlab:738457

"Roger Stafford" wrote in message <iudkm3$j15$>...
> "edward" wrote in message <iudccu$qbe$>...
> > 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