How to generate H-matrix at every iterations using for loop i

4 ビュー (過去 30 日間)
Ali Al raeesi
Ali Al raeesi 2022 年 11 月 1 日
編集済み: KALYAN ACHARJYA 2022 年 11 月 1 日
How to generate H-matrix at every iterations using for loop
iterations=5000;% my iteration
H=sqrt(0.5)*(randn+1i*randn)*(1/sqrt(2));%rayleigh channel how to make it matrix

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2022 年 11 月 1 日
編集済み: KALYAN ACHARJYA 2022 年 11 月 1 日
Hint: using For Loop
for i=1:5000
H=sqrt(0.5)*(randn+1i*randn)*(1/sqrt(2));
end
If you want to store the H in each iteration, use a cell array {} to store the iterated data, use the memory preallocation before use the array in the loop.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by