MATLAB: Product of Two matrix

communicationSignal Processing Toolbox

Let W1 and W2 are complex matrix of diamension N1 x Ns and Nr x N1 respectively.
P = transpose(W1*W2), where N1 = N2 and N2 varies from 1 -18 via x axis. then how we will get the P?
How to direct get them in complex form in the matlab in comman wndow page.

Best Answer

N1 = 3 ; Ns = 3 ;
Nr = Ns ;
W1 = rand(N1,Ns)+1i*rand(N1,Ns) ;
W2 = rand(Nr,N1)+1i*rand(Nr,N1) ;
P = (W1*W2)'
Related Question