You initialize matrix_FA but you never store anything into it?
You calculate several variables but you do not take copies of them each iteration, so the final result stored in them is going to be whatever was stored in the last iteration.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!