Why does my for-loop substitute only one value throughout 31 iterations?
Afficher commentaires plus anciens
Hi all, on the attached file, I am trying to use the for-loop to substitute values for every iteration. However, it seems like the for-loop only substitute one value. What could be the cause of that?
Kind Regards Dursman
3 commentaires
Why are you redefining G, H, I, J, K inside the for loop. They are constants so should be defined outside the for loop unless you are expecting them to change. You seem to be telling it to do the same thing every time round the loop. What is supposed to change? You refer to x(i) so I assume you intended to assign something to x(i) rather than just x every time round the loop.
Dursman Mchabe
le 22 Oct 2018
Dursman Mchabe
le 22 Oct 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur General PDEs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!