Hello!
I have a little problem I'm completely new to C. I'm trying to translate a matlab program to C and having some problems.
Firstly I have a while loop where the exit requirements is that a a difference between temperature between two iterations must be smaller the a set error.
In matlab I do like this:
Code:
T_capt_out=[];
n_iter=0;
E=100;
while E>0.0001
n_iter=n_iter+1;
calculating temp code...
T_capt_out(n_iter)=T_calc
if length(T_capt_out)>1
E=abs(T_capt_out(end)-T_capt_out(end-1));
end
end
How would i implement this in C since I can't make T_capt_out=[] array that I just fill up?