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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!