Matlab - checks on imported data

by bakes1
Tags: data analysis, matlab
 Mentor P: 21,304 You could have three flag variables, one for each column, that are initialized to 0 and are set if you find a value that is above the threshold in a particular column. If you're interested only if any value in any of the three columns is above the threshold, you can probably get by with just one flag variable. flag1 = 0 flag2 = 0 flag3 = 0 Threshold = 10000 % or whatever for i=1:N if y1(i) >= Threshold flag1 = 1 end end