Hello I am using fsolve to solve bunch of equations. There are few equations where I need to use the value of my solved variable from previous time step. I start my loop from second iteration, I have initial values but when I go for 3rd iteration it should be using the value from previous time-step. How should i write it. I have attached the file to make it more clear, its not the whole code just few equation to give a fair idea of what I am saying.
MATLAB: Fsolve variable previous time step
fsolve
Best Answer