how to code matrix multiple time with different result and fill the next column

7 ビュー (過去 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 :)

採用された回答

Star Strider
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.
.
  2 件のコメント
Raja Zufar
Raja Zufar 2020 年 6 月 15 日
thanks sir :)) i use this code and its work thanks for helping me
Star Strider
Star Strider 2020 年 6 月 15 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (1 件)

madhan ravi
madhan ravi 2020 年 6 月 15 日
doc repmat
doc repelem

カテゴリ

Help Center および File ExchangeChebyshev についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by