how to define a new variable in a table
古いコメントを表示
I have a table
date temperature
1/1/2020 10
1/2/2020 20
1/3/2020 30
I want to define a variable 'even' that takes a value of 1 if the day is the even number and 0 if the day is the odd number. That is,
date temperature even
1/1/2020 10 0
1/2/2020 20 1
1/3/2020 30 0
Please advise.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Objects についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!