Azzera filtri
Azzera filtri

How to write the following equation in MATLAB?

1 visualizzazione (ultimi 30 giorni)
Parveen verma
Parveen verma il 26 Giu 2015
Commentato: Walter Roberson il 26 Giu 2015
How to write the following equation in MATLAB?
Tx = (Eelect × K) + (Eamp×K × d^2)
Rx = Eelect × K
Please help.
  2 Commenti
raman hundal
raman hundal il 26 Giu 2015
Modificato: Walter Roberson il 26 Giu 2015
how to write leach cluster head selection formula in MATLAB
T(n)={ p/1-p(r mod 1/p) }
Walter Roberson
Walter Roberson il 26 Giu 2015
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)

Accedi per commentare.

Risposte (1)

Walter Roberson
Walter Roberson il 26 Giu 2015
Tx = (Eelect * K) + (Eamp * K * d^2);
Rx = Eelect * K;
??

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by