Hi,
My mind looks like got some water…I just can not figure out what is wrong with this.
for i=1:100, if(((data_cell{i,1})<= time)&&((data_cell{i+1,1})> time)) [row,col]=find(data_cell{i,1}); end end
I just want to find the value point, where data{i,1}is samller than time, and data {i+1,1}is bigger than time… but the result always gives the last value until i is 100… It should find the value and stop the loop…anyone please give some idea…
Thanks.
Best Answer