Effacer les filtres
Effacer les filtres

I only need the output from the last iteration

2 vues (au cours des 30 derniers jours)
LightFury Yeji
LightFury Yeji le 29 Jan 2021
Commenté : LightFury Yeji le 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.

Réponse acceptée

Stephen23
Stephen23 le 29 Jan 2021
Modifié(e) : Stephen23 le 29 Jan 2021
Wrap disp in a suitable if statement, e.g.:
if j==N
disp(..)
end
  1 commentaire
LightFury Yeji
LightFury Yeji le 29 Jan 2021
This worked! Thank you so much :)

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by