how to write a iterative code?
Afficher commentaires plus anciens
#MATLAB
I want to write a code and I don’t know with which command is better.
Put n=1
If Ic<1.64, n=0.5
If 1.64<Ic<3.3, n=(Ic-1.64)0.3+0.5
If Ic>3.3, n=1
Iterate until the change in delta-n<0.01
2 commentaires
Torsten
le 27 Avr 2022
If lc does not change, n won't change either. Thus delta_n = 0.
Mohammad Sadegh Nasirianfar
le 27 Avr 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements 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!