Effacer les filtres
Effacer les filtres

Problem in implementing nested loop

1 vue (au cours des 30 derniers jours)
Syed
Syed le 9 Juil 2013
Hi,
I have a function:
q_avg = ∑(from q=1 to Q)q (∑(from b=0 to U)∑(from l=0 to L)*∑(kƐ{act,inact}))
where
e.g, active = 1; inactive = 0;
* (summation stands for ∑) (Ɛ means belongs to) (from q=1 to Q etc are the limits)
How can i write the above function in Matlab?
  3 commentaires
Syed
Syed le 9 Juil 2013
No. i am trying to learn Matlab
Evan
Evan le 9 Juil 2013
Okay. Do you have some code already started, or is there a specific area in which you're stuck? Defining your questions more specifically and showing that you have put forth some work will generally lead to better responses on this forum.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by