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: Mon, 21 Sep 2009 12:06:03 +0000 (UTC)
Organization: UKIM
Lines: 16
Message-ID: <h97q7b$min$1@fred.mathworks.com>
References: <h97gjp$k4m$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1253534763 23127 172.30.248.37 (21 Sep 2009 12:06:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Sep 2009 12:06:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1930977
Xref: news.mathworks.com comp.soft-sys.matlab:571772


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