필터 지우기
필터 지우기

Problem in implementing nested loop

조회 수: 1 (최근 30일)
Syed
Syed 2013년 7월 9일
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
Syed
Syed 2013년 7월 9일
No. i am trying to learn Matlab
Evan
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개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by