How to write the following equation in MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
How to write the following equation in MATLAB?
Tx = (Eelect × K) + (Eamp×K × d^2)
Rx = Eelect × K
Please help.
2 件のコメント
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
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 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!