How to write the following equation in MATLAB?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
How to write the following equation in MATLAB?
Tx = (Eelect × K) + (Eamp×K × d^2)
Rx = Eelect × K
Please help.
2 comentarios
raman hundal
el 26 de Jun. de 2015
Editada: Walter Roberson
el 26 de Jun. de 2015
how to write leach cluster head selection formula in MATLAB
T(n)={ p/1-p(r mod 1/p) }
Walter Roberson
el 26 de Jun. de 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)
Respuestas (1)
Walter Roberson
el 26 de Jun. de 2015
Tx = (Eelect * K) + (Eamp * K * d^2);
Rx = Eelect * K;
??
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!