I am using 6 numeric arrays in my project, their names are: block1, block2 , block3 , block4, block5 , block6
i execute the same function for all of them, i need to make this in a for loop, but i failed to index the elements of the arrays, i tried this:
for i=1:6 h = ['block' int2str(i)]; eval(h) end for row=1:BRows for col=1:BCols if (h(row,col) >= 316 && h(row,col) <= 20) h(row,col) = 0; elseif (h(row,col) >= 21 && h(row,col) <= 40) h(row,col) = 1; end end
Would you help me please
Best Answer