How to create a loop
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
This is my code. How can i create a loop to remove dubble coding.
e(1) = ; %Primary expenditure at starting point
e(2) = e(1)*(1+ge)/(1+y);
e(3) = e(2)*(1+ge)/(1+y);
e(4) = e(3)*(1+ge)/(1+y);
e(5) = e(4)*(1+ge)/(1+y);
e(6) = e(5)*(1+ge)/(1+y);
e(7) = e(6)*(1+ge)/(1+y);
e(8) = e(7)*(1+ge)/(1+y);
e(9) = e(8)*(1+ge)/(1+y);
e(10) = e(9)*(1+ge)/(1+y);
e(11) = e(10)*(1+ge)/(1+y);
e(12) = e(11)*(1+ge)/(1+y);
e(13) = e(12)*(1+ge)/(1+y);
e(14) = e(13)*(1+ge)/(1+y);
1 commentaire
Réponses (2)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!