My simulation is running too slow because is keeping too many data. So, because I am using a double integrator, I would like to know if someone knows how to keep data from the last two iteration (i-1) and i in each loop. Thanks!
MATLAB: “if it possible to only keep the value of the last two iterations”
matlab too slow
Best Answer