Path: news.mathworks.com!not-for-mail
From: "zedong 
" <zdongwu@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to plot a graph with discrete points?
Date: Tue, 22 Sep 2009 11:07:04 +0000 (UTC)
Organization: &#20013;&#22269;&#31185;&#23398;&#38498;&#25968;&#23398;&#19982;&#31995;&#32479;&#31185;&#23398;&#30740;&#31350;&#38498;
Lines: 32
Message-ID: <h9ab4o$2lr$1@fred.mathworks.com>
References: <h97gjp$k4m$1@fred.mathworks.com> <h97q7b$min$1@fred.mathworks.com> <h981c3$9pl$1@fred.mathworks.com> <h9a8kj$ru6$1@fred.mathworks.com>
Reply-To: "zedong 
" <zdongwu@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253617624 2747 172.30.248.37 (22 Sep 2009 11:07:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Sep 2009 11:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1639198
Xref: news.mathworks.com comp.soft-sys.matlab:572050


"Didi Cvet" <didi_cvet@yahoo.com> wrote in message <h9a8kj$ru6$1@fred.mathworks.com>...
> "zedong 
> " <zdongwu@gmail.com> wrote in message <h981c3$9pl$1@fred.mathworks.com>...
> > "Didi Cvet" <didi_cvet@yahoo.com> wrote in message <h97q7b$min$1@fred.mathworks.com>...
> > > "zedong 
> > > " <zdongwu@gmail.com> wrote in message <h97gjp$k4m$1@fred.mathworks.com>...
> > > > I have a problem on plot the graph.
> > > > I only have the following data
> > > > figgg=[x_i,y_i,z_i].
> > > > for example:
> > > > x=rand(100,1);
> > > > y=rand(100,1);
> > > > z=x.^2+y.^2;
> > > > figgg=[x,y,z];
> > > > you can use this figgg for test.
> > > > But as a matter of fact now I only have the  figgg,I don't know how it's computed out. I want to plot a graph to see the 2d function.Thank you very much
> > > 
> > > I think that this is 3D function (because you have 3 arguments)
> > > Plot them with 
> > > >>plot3(x,y,z)
> > plot3 can only plot point.I want to plot cloudy figure.like the function trisurf.But trisurf need mesh information.I don't have mesh information
> 
> 
> I'm not sure but try this:
> 
> [xx yy]=meshgrid(rand(100,1));
> >> zz=xx.^2+yy.^2;
> >> surfc(xx,yy,zz)
> >> surf(xx,yy,zz)
> >> mesh(xx,yy,zz)
> one of those plot functions might help you.
Yes ,You are right.But I now only have the data  [x_i,y_i,z_i],I don't have the structure.surf need z be a matrix but my z is a vector.Thank you