Convert Excel date to use in MATLAB
1 回表示 (過去 30 日間)
古いコメントを表示
Siskia Yarzagaray
2016 年 5 月 15 日
回答済み: Walter Roberson
2016 年 5 月 15 日
Halo, is there a way that I can convert the dates imported from Excel and then use this to plot graphs? The format from excel is: 11/23/2015, but MATLAB sees this as text data and I cant scatter plot it against a series of number. The error I get is: "Input arguments must be numeric".
1 件のコメント
Geoff Hayes
2016 年 5 月 15 日
Siskia - how do you want to use this date field to plot data? What is the code that you are using to read the data from file and then plot the data? What is the line of code that is generating this error? Please provide more details.
採用された回答
Walter Roberson
2016 年 5 月 15 日
If you are using R2014b or later, you can use readtable() to read the data and it will automatically convert the dates into datetime objects that can be plotted against.
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!