How to write a matrix of $n\times 2$ where the first column is made of only 1's?
Suppose I have a vector x={.24,...,10}.
How can I get this
$\left( \begin{matrix} 1 & .24 \\ 1 & 21 \\ 1 & 33 \\ 1 & 11 \\ 1 & 10 \end{matrix}\right)$
How can I do that?
Help me please
I know how to write a 'normal' matrix, it's MatrixForm[{1,2},{1,1}] but how to give the form above?
ArrayFlatten@{{1, Transpose[{col2}]}}is another possibility. Closely related: Prepend 0 to sublists and Replace part of the element in a List of points – user1066 Oct 31 '18 at 12:01