MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Plotting a graph of three variables 

Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 29 Aug, 2010 09:00:07 Message: 1 of 25 
Hello, 
Subject: Plotting a graph of three variables From: Ross W Date: 29 Aug, 2010 10:44:03 Message: 2 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i5d7in$p17$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 29 Aug, 2010 12:38:03 Message: 3 of 25 
For example, if I'm plotting a curve of fruits vs. cost, I would get one curve. 
Subject: Plotting a graph of three variables From: David Young Date: 29 Aug, 2010 12:45:05 Message: 4 of 25 
Plot the first curve, then give the command "hold on" and plot the remaining curves. They will appear on the same axes. You can control the colours etc if you want to distinguish them. 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 29 Aug, 2010 15:14:03 Message: 5 of 25 
No I've already tried the hold function, it tries to fit the data as two separate curves. 
Subject: Plotting a graph of three variables From: Roger Stafford Date: 29 Aug, 2010 19:45:04 Message: 6 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i5dtfr$10r$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 30 Aug, 2010 15:52:06 Message: 7 of 25 
Thanks Roger for replying. 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 18 Sep, 2010 13:46:03 Message: 8 of 25 
Hey, I really need your help. 
Subject: Plotting a graph of three variables From: Ross W Date: 18 Sep, 2010 14:39:04 Message: 9 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i72fqr$gip$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 19 Sep, 2010 00:16:05 Message: 10 of 25 
Hey Ross, thanks for replying, 
Subject: Plotting a graph of three variables From: Ross W Date: 19 Sep, 2010 00:40:12 Message: 11 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i73ko5$mv0$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 19 Sep, 2010 01:14:04 Message: 12 of 25 
Hey Ross, once again thanks! 
Subject: Plotting a graph of three variables From: Ross W Date: 19 Sep, 2010 07:20:23 Message: 13 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i73o4s$nmb$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 19 Sep, 2010 13:00:06 Message: 14 of 25 
Hey Ross, thanks once again! 
Subject: Plotting a graph of three variables From: Ross W Date: 19 Sep, 2010 21:19:04 Message: 15 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i751gm$b82$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 1 Oct, 2010 15:40:05 Message: 16 of 25 
Hey Ross I hope its not too late. 
Subject: Plotting a graph of three variables From: Marc Date: 1 Oct, 2010 22:16:20 Message: 17 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i84vcl$c05$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Ross W Date: 1 Oct, 2010 22:57:04 Message: 18 of 25 
"Marc " <marc.schreier@uop.com> wrote in message <i85mjk$eia$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 2 Oct, 2010 04:10:21 Message: 19 of 25 
Hey Mark your code worked great, but just one tiny problem, however I try, there are 3 separate plots on 3 graphs rather than 3 plots on the same graph. 
Subject: Plotting a graph of three variables From: Ross W Date: 2 Oct, 2010 07:12:04 Message: 20 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i86bbc$sqi$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Marc Date: 3 Oct, 2010 04:32:03 Message: 21 of 25 
"Prasad M. Rao" <XLR8RPM@Gmail.com> wrote in message <i86bbc$sqi$1@fred.mathworks.com>... 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 3 Oct, 2010 06:36:03 Message: 22 of 25 
@ Mark: Here's the code, it's just your code. 
Prasad M. Rao wrote: 
Subject: Plotting a graph of three variables From: Prasad M. Rao Date: 26 Oct, 2010 13:07:03 Message: 24 of 25 
Thankyou very much for all the help Marc & dpb. 
Subject: Plotting a graph of three variables From: dpb Date: 26 Oct, 2010 13:17:02 Message: 25 of 25 
Prasad M. Rao wrote: 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.