I am a complete n00b to MATLAB but I need a bit of help with plotting some data sets. I have four individual m-files that I have written code into, each one creates a plot when it is run. How can I "superimpose" the plots on top of each other so that I can read them all from the same graph? Is there a way I can import a figure on top of an already existing one?
6/13/2006 5:50:57 PM
you can use the 'hold' function. so if you have a certain figure, you can say 'hold on' and then put multiple plots on there. when you're done, you can do 'hold off'
6/13/2006 5:53:13 PM
6/13/2006 7:55:34 PM
^ i have problems with using too many words
6/14/2006 12:51:06 AM
Awesome, I got it work, thanks guys. Is there a way I can add a grid to just the Y-axis? I know that by putting "grid on", it will add major grid lines to both the X and Y-axes. I can turn off the X-axis grid manually by double clicking on the plot but is there a way I can do it in the code?[Edited on June 14, 2006 at 9:28 AM. Reason : ]
6/14/2006 9:20:35 AM
help (insert function here) is what I always refer to.... so type "help plot" that should give you all the info you need in changing colors, chaning lines to x's and o's and dashes etc.
6/14/2006 6:35:27 PM