I wrote the following code. The problem is that at the specific value of 0.288
,
T
turns to zero for no obvious reason. Any explanation? The weird thing is that when I change it to 0.28
it works fine.
time=(0:0.002:0.560);
time_f=reshape(time,281,1);
time1=0;
time2=0;
for i=1:1
for j=1:281
T=time_f(j,i);
if (i==1) && (T==0.288);
time1=T;
end
end
end
If you test the code you will find that the time1
value will be zero and if you change T
to 0.28
it will work.