how to define an sum function
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi , i want to define this function in matlab :
f=sum(sum(c(i,k)*(x(i,k)))+sum(sum((h(i,j))*(1-sum(y(i,j)))
i=1:10;
j=1:10;
k=1:3;
i!=j;
thank you for helping me
2 commentaires
John D'Errico
le 19 Mai 2012
It looks like you want to write a for loop, but have not read any help on how to use for loops. Perhaps it is time to start with this:
doc for
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!