If I have an arbitrary matrix A and a row vector v of 1 row and the same number of columns as A.
Suppose I want to construct a matrix Q of the same size as A where every row in Q is the vector v.
Illustrative example:
A=[ 1 1 1; 2 2 2; 3 3 3; 4 4 4]; v=[5 5 5];%I want to create Q s.t
Q=[5 5 5; 5 5 5 5; 5 5 5 5; 5 5 5 5];
Thanks
Best Answer