Say I have a table X = (columnA, columnB, columnC) What is wrong with the following command? The result is always columnB = columnA no matter what condition and which line. There are numbers in columnA smaller than 30 or larger than 90 just so you know. Thank you in advance!!
for i = 1:numel(columnA) if 30 < columnA(i) < 90 columnB(i) = columnA(i); else columnB(i) = columnC(i); endendend
Best Answer