Borrar filtros
Borrar filtros

I only need the output from the last iteration

2 visualizaciones (últimos 30 días)
LightFury Yeji
LightFury Yeji el 29 de En. de 2021
Comentada: LightFury Yeji el 29 de En. de 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.

Respuesta aceptada

Stephen23
Stephen23 el 29 de En. de 2021
Editada: Stephen23 el 29 de En. de 2021
Wrap disp in a suitable if statement, e.g.:
if j==N
disp(..)
end

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by