MATLAB: How to generate a matrix of 1 by L dimentions contains complex data from real and imaginary components

complexrandom matrix

how to generate a matrix of 1 by L dimentions contains complex data from real and imaginary components.

Best Answer

L = 20;
your_mat = randi(100,1,L) + randi(100,1,L) .* 1i;