hi, i have this problem with matlab. This is my m-file, but it doesnt work.
clear allt=0:0.1:1;k=length(t);a=0;for i=1:k if a==0.8 disp('hi') end a=a+0.1endIf i use this onet=0:1:10;k=length(t);a=0;for i=1:k if a==8 disp('hi') end a=a+1end
this one works well. The difference between first and second case is only that some variables are increased 10times. Please help. thank you
Best Answer