From: ravi on
Hi guys,

I have the following code:

for iteration = 1:5
iteration;

A = 2;
B =4;
C =3;

d_computed = (A + B +C)


misclosure = [ d_computed]

end

However, I want my iteration to run such that

my misclosure is as follows

misclosure = [ previous_d_computed - current_d-computed]

Can any help me out


best,
ravi