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

2 vues (au cours des 30 derniers jours)
Ali Al raeesi
Ali Al raeesi le 1 Nov 2022
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

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 1 Nov 2022
Modifié(e) : KALYAN ACHARJYA le 1 Nov 2022
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.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by