how to use output as input in same code
2 views (last 30 days)
Show older comments
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 Comments
KALYAN ACHARJYA
on 17 Sep 2019
Edited: KALYAN ACHARJYA
on 17 Sep 2019
h=2
E=0
for ...
for ...
....
E=E+M % Update E
end
end
Role of I loop ??
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!