Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to plot a graph with discrete points?
Date: Tue, 22 Sep 2009 10:24:19 +0000 (UTC)
Organization: UKIM
Lines: 30
Message-ID: <h9a8kj$ru6$1@fred.mathworks.com>
References: <h97gjp$k4m$1@fred.mathworks.com> <h97q7b$min$1@fred.mathworks.com> <h981c3$9pl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253615059 28614 172.30.248.35 (22 Sep 2009 10:24:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Sep 2009 10:24:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1930977
Xref: news.mathworks.com comp.soft-sys.matlab:572045


"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.