Create a new column in the table with conditional values of 1 or 0
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!