ofdm code error code
조회 수: 1 (최근 30일)
이전 댓글 표시
hello every one, i need to change this
TrDataBit = randint(N,1,M); to randi function
please help
댓글 수: 0
채택된 답변
Manikanta Aditya
2023년 3월 26일
편집: Manikanta Aditya
2023년 3월 26일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!