Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Seperate Matlab data for my text file
1 回表示 (過去 30 日間)
古いコメントを表示
I have data where the year and month are stuck together, as seen 180001, should be 01 1800, how do I seperate that?
0 件のコメント
回答 (1 件)
Bhaskar R
2020 年 1 月 20 日
編集済み: Bhaskar R
2020 年 1 月 20 日
Suppose your data in the variable data
data_in_time = datetime(num2str(data(:,1)), 'Format', 'yyyyMM');
data_in_time.Format = 'MM-yyyy';
If you want data in double class instead of datetime
data_in_double = datevec(data_in_time);
% then get the repective column accordingly(years/months)
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!