Respected Sirs, I have a loop running about 1000 times.I am using an equation like
while... for i=1:3 x(i) = a(i) + a(i)*(b(:,i)).^1.2 end end
and i'm getting some output, BUT when i use this form
b=1.2;while... for i=1:3 x(i) = a(i) + a(i)*(b(:,i)).^b endend
i get output as [NaN NaN]
why is it happening?? please help!!
Best Answer