I have this program in matlab
Tol = 0.5;ma=10;t=[1 2];B=;loopEnd=3; myData = zeros(ma,loopEnd);
How can i add condition (if statment) ,the condition is :
1-if the result is big than 1.5 cancel it and biging new iteration,
2-if the result is less than 0.5 save it in B, if not repeat new iteration (new loop) ,the loop is repeat until the final vector have 10 values.