How to convert time column into a regular array?
古いコメントを表示
I have a table with first column as time series, and other columns as other parameters that changes with time. I want to convert the time series into an array for plaotting. I tried following code:
A_time = A(:,1);
A_time_array = table2array(A_time);
This method works for all the numeric columns. However, it errors out in the time column. Can someone suggest a better way?
1 件のコメント
Stephen23
2022 年 1 月 21 日
"Can someone suggest a better way?"
Convert the "time series" to datetime objects and plot using them.
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!