MATLAB: How to fill each row of a matrix with vectors created separately

MATLABmatrix manipulationvector

I created 4 vectors and I want to insert them into a matrix to print them all together. Is there a function that would allow me to do this? My vectors are:
A=[matriz1,matriz2,matriz3,matriz4];
B=[matriz5,matriz6,matriz7,matriz8];
C=[matriz9,matriz10,matriz11,matriz12];
D=[matriz13,matriz14,matriz15,matriz16];

Best Answer

You may use the following notation:
A(1,:)=vec1
.
.
A(4,:)=vec4
or
A(1:size(A,1),:)=[vec1;vec2;vec3;vec4];
Related Question