Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How do i convert a text format into respective numeric vectors?
1 回表示 (過去 30 日間)
古いコメントを表示
I am having a 'raw' file with 3 columns as in the attached file 'test'. I want to read the first column as datenum or datevec but it is not doing so. Can you please let me know how can i convert the first column into its respective vector. So that i can read it as datenum function. Thanking you, Kind regards, Parth
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 5 月 17 日
cellfun(@(S) datetime(S(2:end-1)), raw(:,1))
The quote marks in the cell are interfering with the automatic interpretation of the data.
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!