Filter löschen
Filter löschen

I only need the output from the last iteration

2 Ansichten (letzte 30 Tage)
LightFury Yeji
LightFury Yeji am 29 Jan. 2021
Kommentiert: LightFury Yeji am 29 Jan. 2021
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by