How do I save multiple vectors and use them to display multiple plots at once
1 view (last 30 days)
Show older comments
Hi, so, essentially I need to make 82 seperate plots in one figure for 82 seperate id numbers. I have extracted data from a file and calculated the variables I need from it, each is a 1x82 matrix. I've condensed both of these into one 2x82 matrix so that i can plot them against each other. however, each time i run the code I'm getting a different plot since every tiem it runs its generating data from only 1 id number at a time. How do I get matlab to save all the data from each unique id number and plot them all in 1 graph? any help would be much appreciated
0 Comments
Answers (1)
Image Analyst
on 19 Jun 2019
After you call plot() the first time, call "hold on"
plot(................
hold on;
% more calls to plot......
0 Comments
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!