how to use output as input in same code
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
KALYAN ACHARJYA
2019-9-17
编辑:KALYAN ACHARJYA
2019-9-17
h=2
E=0
for ...
for ...
....
E=E+M % Update E
end
end
Role of I loop ??
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!