How can i create an array with datetime values as one column and integers as one column?

4 ビュー (過去 30 日間)
I always get the following error: "All inputs must be datetimes or date/time character vectors or date/time strings".

採用された回答

Peng Li
Peng Li 2020 年 3 月 28 日
you can use table instead of an array.
table can have columns with different types.
e.g.,
a = yourDatetime;
b = yourInteger;
c = table(a, b);
  1 件のコメント
Arnar Þór Ólafsson
Arnar Þór Ólafsson 2020 年 3 月 28 日
Thank you for the information! It's probably better to use a table in my project.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by