MATLAB: I only need the output from the last iteration

helpiterationiterationslastmathmathematicsmathsMATLABoutput

This code repeats 0.1 to 0.9 x-values (first column) with its corresponding wij values (second column) 50 times, but I only need the output from the last 0.1-0.9 iteration (as highlighted). These values are correct, I need the other values to not show up.

Best Answer

Wrap disp in a suitable if statement, e.g.:
if j==N
disp(..)
end