"Warning: Out of range or non-integer values truncated during conversion to character." ———————————————
Parts of the Code defining and showing "it":
…..
fid=fopen('Project_3_VCCT','w');
Text=([' it ']);
fprintf(fid,'% s\n',Text);
it=0;
for incr=1:incr_max
load_total=load_total+load_increment; Flag_G_IC=0; while Flag_G_IC==0 && it<itmax && Flag_last_el_x==0 it=it+1; ..... ..... results(1) = it ..... fprintf([fid,'%3.0f \n',results]); ..... endendfclose(fid);type Project_3_VCCT---------------------------------------------------------------------------In the end I do not see the results (after "type"), but I by removing the semicolon I saw the it is:It=1.000It=2.000.....
This should be the source of warning / error, but I do not understand why is "It" not just 1,2,3,4… at the first place.
Thank you in advance!
Regards,
Pavlin Todorov
P.S. I meet the kind of error at other places, too. The division 4/2 is sometimes 2 and other times 2.0000.
Best Answer