How to make loop and sum the result ??
5 views (last 30 days)
Show older comments
Commented: Mahdi on 4 Jun 2014
I have this loop...
i have constriants D=7 or <7
so i need this costraint=D-C-M
let say M=2
my equestion is how can i have the sumuation result of C from loop three times and then add this sum to constraint equation???
More Answers (1)
Just move the summation inside the for loop:
In this case, each row of summation would correspond to the summation inside each iteration of the loop.
Find more on Loops and Conditional Statements 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!