how to define a new variable in a table
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Generate Reports in Polyspace Platform User Interface in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!