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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by