필터 지우기
필터 지우기

How to write the following equation in MATLAB?

조회 수: 1 (최근 30일)
Parveen verma
Parveen verma 2015년 6월 26일
댓글: Walter Roberson 2015년 6월 26일
How to write the following equation in MATLAB?
Tx = (Eelect × K) + (Eamp×K × d^2)
Rx = Eelect × K
Please help.
  댓글 수: 2
raman hundal
raman hundal 2015년 6월 26일
편집: Walter Roberson 2015년 6월 26일
how to write leach cluster head selection formula in MATLAB
T(n)={ p/1-p(r mod 1/p) }
Walter Roberson
Walter Roberson 2015년 6월 26일
Are you sure that is the formula? It is very uncommon in formula to explicitly divide a number by 1. Your formula as written is equivalent to
p - p(r mod 1/p)
which is
p - p * (r mod 1/p)
which is
p - p * mod(r, 1/p)
and which would be vectorized as
p - p .* mod(r, 1./p)

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 26일
Tx = (Eelect * K) + (Eamp * K * d^2);
Rx = Eelect * K;
??

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by