How can I plot a lot of data sets quickly?

8 ビュー (過去 30 日間)
Tyler S
Tyler S 2021 年 10 月 5 日
回答済み: Rik 2021 年 10 月 5 日
The way I am currenlty coding is indivudually writing out every plot for all x & t variable for all 14 data sets that I have for a spring-mass damping system. Graphing displacement over time, but for 14 trials. Is there an easier way to plot all 14 runs rather than writing out each time "plot(t1,x1); plot(t2,x2).....etc."

回答 (1 件)

Rik
Rik 2021 年 10 月 5 日
Make sure you load the data to an array instead of numbered variables. That way you can use a simple for loop and indexing.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by