Take a look at some tips for how to post code on discourse.
I think you are running to the sometimes unintuitive behavior of global scope.
Try adding global df_fin right after your for i = 1:250.
Take a look at some tips for how to post code on discourse.
I think you are running to the sometimes unintuitive behavior of global scope.
Try adding global df_fin right after your for i = 1:250.