```Path: news.mathworks.com!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting a graph of three variables
Date: Sat, 18 Sep 2010 13:46:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <i72fqr\$gip\$1@fred.mathworks.com>
References: <i5d7in\$p17\$1@fred.mathworks.com> <i5ddlj\$ilv\$1@fred.mathworks.com> <i5dkbb\$lco\$1@fred.mathworks.com> <i5dkoh\$hj1\$1@fred.mathworks.com> <i5dtfr\$10r\$1@fred.mathworks.com> <i5edc0\$euq\$1@fred.mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1284817563 16985 172.30.248.38 (18 Sep 2010 13:46:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 18 Sep 2010 13:46:03 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:671084

Hey, I really need your help.
Apologies for the delay.
Lets see how helpful I cane be in my problem.
I have three variables say X, Y and Z.
I need to plot X vs. Y.
Now the problem:
1. Y is changing, so is Z.
So now what I need is the graph of X vs. Y at different Z.
2. Now all the variables (X,Y & Z) have thousands of values in them, but I would like the graphs at just some discrete points of Z.
3. OK I know that the graph of X vs. Y is a curve. So now all I want is multiple graphs on the same page of X vs. Y at different Z.
The people who know the exact code, said that I needed to use one or two for loops, the plot and the hold commands.