I only need the output from the last iteration

1 view (last 30 days)
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.

Accepted Answer

Stephen23
Stephen23 on 29 Jan 2021
Edited: Stephen23 on 29 Jan 2021
Wrap disp in a suitable if statement, e.g.:
if j==N
disp(..)
end

More Answers (0)

Categories

Find more on Elementary Math in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!