How to repeat matrix/matrice complex double (Slices of 3D array) , please following the equation

2 ビュー (過去 30 日間)
Mirza Etnisa
Mirza Etnisa 2022 年 4 月 21 日
編集済み: Mirza Etnisa 2022 年 4 月 21 日
How to repeat this equation up to 1000x iterations, please add to the following equation
Equation :
clear
clc
Ns=5
shita=0.7
for n=1:Ns
E=randn(1,1);
if n==1
T(n)=E;
else
T(n)=shita*T(n-1)+E;
end
end
K=5
R0=T'*T
XX=zeros(Ns,Ns,K)
for i=1:K
XX(:,:,i)=(T*T')+(0.1*(eye(Ns)))
end
A=R0(:,:)
B=XX(:,:,i)
for i=1:K
for j=1:K
if i==j
matRx{i,j}=XX(:,:,i)
else
matRx{i,j}=R0(:,:)
end
end
end
matRx=cell2mat(matRx)
for i=1:K
C(:,:,i)=(1/sqrt(2))*(randn(K*K,K*K)+1i*randn(K*K,K*K))
D(:,:,i)=C(:,:,i)*matRx
end

回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by