Effacer les filtres
Effacer les filtres

how to use output as input in same code

2 vues (au cours des 30 derniers jours)
GAURAV DHADSE
GAURAV DHADSE le 17 Sep 2019
Commenté : GAURAV DHADSE le 17 Sep 2019
h = 2
for I = 1:15
E = 0
for el = 1:20
M = 1 +h
E = E + M
end
end
how can I use the new value of E for each iteration?
  5 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 17 Sep 2019
Modifié(e) : KALYAN ACHARJYA le 17 Sep 2019
h=2
E=0
for ...
for ...
....
E=E+M % Update E
end
end
Role of I loop ??
GAURAV DHADSE
GAURAV DHADSE le 17 Sep 2019
Dear Walter sir, thanks for the answer, now my code is running properly. Thank you everyone

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical 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!

Translated by