ofdm code error code

1 visualización (últimos 30 días)
hiba muhammed
hiba muhammed el 25 de Mzo. de 2023
Editada: Manikanta Aditya el 26 de Mzo. de 2023
hello every one, i need to change this
TrDataBit = randint(N,1,M); to randi function
please help

Respuesta aceptada

Manikanta Aditya
Manikanta Aditya el 26 de Mzo. de 2023
Editada: Manikanta Aditya el 26 de Mzo. de 2023
Hi Hiba,
As per my understanding, you want to change TrDataBit = randint(N,1,M); to randi function.
To change TrDataBit = randint(N,1,M); to use randi instead, you can modify the line as follows:
TrDataBit = randi([0 M-1],N,1);
This will generate a random sequence of integers between 0 and M-1 of length N, stored in the variable TrDataBit. Note that randint is a legacy function that has been replaced by randi in recent versions of MATLAB.
I hope this resolves your issue.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by