Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I plot a number of different outputs onto the same graph?

Status
Not open for further replies.

AcesB

Bioengineer
Joined
Mar 20, 2009
Messages
1
Location
GB
I have an m-file and it gives out various outputs when I change the conditions in the code. I have seen someone plot the different outputs onto the same graph using the same m-file but slightly changed each time. He did something like rename the parameter and type some plot commands into the command window eg...

plot (t/3600, A) ...

and then slightly changed the m-file, then

plot (t/3600, A2) ...

and plotted both resulting graphs on top of each other so they could be compared easily.

How do you do this. I'm having trouble with it.

I hope someone can help.

Alex
 
Check the help for "hold".

hold on
hold off

- Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top