z=scp(x,y) "Separate Complex Product" Take the product of real and imag parts of complex input separately. i.e. dot product of vectors
0001 function z=scp(x,y) 0002 % z=scp(x,y) 0003 % 0004 % "Separate Complex Product" 0005 % Take the product of real and imag parts of complex 0006 % input separately. 0007 % 0008 % i.e. dot product of vectors 0009 0010 z=complex(real(x).*real(y),imag(x).*imag(y));