Create a new column in the table with conditional values of 1 or 0
4 views (last 30 days)
Show older comments
Zuzana Pániková
on 22 May 2022
Commented: Zuzana Pániková
on 23 May 2022
Hi,
I imported a spreadsheet from Excel to Matlab:
I need to create a new column where the condition evaluates from column G (Odstup_s_) so that all values that are <= 5 will be 1 and the others will be 0
in excely it would look like: =IF(G2<5;1;0)
Thank you for help.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!