how to define a new variable in a table
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Generate Reports in Polyspace Platform User Interface in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!