I want to generate 10 random matrix ,H_AB ,and store them in to H_AB_store ,here is my original code
At=7;Br=2;rw=10H_AB_store=zeros(Br*rw,At*rw)for i=1:rwH_AB = sqrt(1/2)*[randn(Br,At) + j*randn(Br,At)];H_AB_store(Br*i,At*i)=H_ABend
However,the window always told me this error
Assignment has more non-singleton rhs dimensions than non-singleton subscriptsError in unit_channel (line 7)H_AB_store(Br*i,At*i)=H_AB
How do i modify this error?
Best Answer