Problem in implementing nested loop
古いコメントを表示
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 件のコメント
Evan
2013 年 7 月 9 日
Is this homework?
Syed
2013 年 7 月 9 日
Evan
2013 年 7 月 9 日
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.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!