How do I save multiple vectors and use them to display multiple plots at once

1 回表示 (過去 30 日間)
SZ
SZ 2019 年 6 月 19 日
回答済み: Image Analyst 2019 年 6 月 19 日
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

回答 (1 件)

Image Analyst
Image Analyst 2019 年 6 月 19 日
After you call plot() the first time, call "hold on"
plot(................
hold on;
% more calls to plot......

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by