how to code matrix multiple time with different result and fill the next column
조회 수: 4 (최근 30일)
이전 댓글 표시
Hallo i really confused how to make this code.
i have matrix result SNR [6x1], the SNR result will be diferrent each time it is run
and i have RB = 5 , pls help me how to make SNR_RB = 6x5 matrix with different result
example matrix result :
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
Running SNR 1 Running SNR 2 Running SNR 3 Running SNR 4 Running SNR 5
i have a code if you want to help me :)
댓글 수: 0
채택된 답변
Star Strider
2020년 6월 15일
I have no idea exactly what you are doing, however this approach will create your matrix:
RB = 5;
for k = 1:RB
SNR = rand(6,1); % Calculate ‘SNR’ As (6x1) Vector
Running_SNR(:,k) = SNR;
end
Change appropriately to work with your data.
.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Chebyshev에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!