フィルターのクリア

Cell array into numeric array. Date data type handling.

1 回表示 (過去 30 日間)
Patricia Alejandra Palacios Romero
Patricia Alejandra Palacios Romero 2018 年 5 月 10 日
コメント済み: Peter Perkins 2018 年 5 月 14 日
I have an excel file with the collumn A full of dates of this type: 01/01/2017 00:00 for example. When I import it to MATLAB, is imported as a cell array. I need to be able to treat those cell arrays as dates in MATLA abd make conditional operations with them. Can you help in a way I can do so?

採用された回答

Guillaume
Guillaume 2018 年 5 月 10 日
Use the modern readtable rather than the ancient xlsread. readtable parses dates properly.
  2 件のコメント
Patricia Alejandra Palacios Romero
Patricia Alejandra Palacios Romero 2018 年 5 月 11 日
hey, thank you! that really helped me.
Peter Perkins
Peter Perkins 2018 年 5 月 14 日
Also, probably take one extra step and use table2timetable.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by