Splitting time series into segments
8 ビュー (過去 30 日間)
古いコメントを表示
I'm looking to create a plot which is divided into segments.
I have a matrix that looks like 'State_ID' 'Time' 'DD' 'SR' 'H'. State_ID runs from 1-26. I'm looking to create a plot which has a DD, SR, and H values across time on the x axis but divided into different colours or line types according to what the State_ID is?
0 件のコメント
回答 (1 件)
dpb
2020 年 7 月 6 日
Use findgroups to segregate the state groups and plot() over those group indices.
Converting the array to a table makes things neater and simpler as can then use varfun/rowfun and friends may be helpful
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!