`clear allclcD=20;M=100;K=40;D_l=0.3;for k=1:Kfor d=1:D tita(d)=randn(1,1); tita_d=tita(d);for m=1:Ma(m,d)=exp(j*2*pi*(m-1)*D_l*sin(tita_d));endendA_k(:,:,k)=a.'/sqrt(D);end`

The problem in the above is: A_k stores all the values in loop K. Now I want to take each matrix of every loop k and write down into a big matrix. like A=[A_1 …. A_k],,,

How to do it, am struck here,, please help

## Best Answer