how to define a new variable in a table
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Generate Reports in Polyspace Platform User Interface en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!