unable to perform assignment because the left and right sides have a different number of elements , vect problem

1 visualización (últimos 30 días)
can some one plz explain tome that !
  2 comentarios
amani
amani el 7 de Sept. de 2024
i do vec_SNR_dB(i) = vec_EbN0_dB (i) + 10( mod_order)
it word but i don't know if it is correct or no !

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 7 de Sept. de 2024
vec_EbN0_dB is an entire vector.
On the statement
vec_SNR_dB(i) = vec_EbN0_dB + log10( mod_order)
you are using the entire vector vec_EbN0_dB on the right hand side, so the right hand side is an entire vector. The left hand side can only store a single element.
However,
vec_SNR_dB(i) = vec_EbN0_dB (i) + 10( mod_order)
is an incorrect expression because it is not possible to index the constant 10 at a particular location mod_order, and MATLAB has absolutely no implied multiplication.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by