plugging back a solution to obtain new soultion
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Maryal
le 29 Nov 2017
Réponse apportée : Star Strider
le 29 Nov 2017
Is there a way in I could write a code in which I use a function to obtain a solution then plug that solution back into the function to obtain a new solution
0 commentaires
Réponse acceptée
Star Strider
le 29 Nov 2017
Yes. Use a loop.
Example —
x = 2;
for k1 = 1:5
y = x^2
x = y;
end
0 commentaires
Plus de réponses (0)
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!