This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Entering Tables and Matrices

The Mathematica front end provides an InsertTable/Matrix submenu for creating and editing arrays with any specified number of rows and columns. Once you have such an array, you can edit it to fill in whatever elements you want.
Mathematica treats an array like this as a matrix represented by a list of lists.
Click for copyable input
Putting parentheses around the array makes it look more like a matrix, but does not affect its interpretation.
Click for copyable input
Using MatrixForm tells Mathematica to display the result of the Transpose as a matrix.
Click for copyable input
Ctrl+,add a column
Ctrl+Enteradd a row
Tabgo to the next or element
Ctrl+Spacemove out of the table or matrix

Entering tables and matrices.

Note that you can use Ctrl+, and Ctrl+Enter to start building up an array, and particularly for small arrays this is often more convenient than using the New menu item in the Table/Matrix submenu. The Table/Matrix menu items typically allow you to make basic adjustments, such as drawing lines between rows or columns.
Entering a Piecewise expression is a special case of entering a table.
Enter the \[Piecewise] character and press Ctrl+, to get a template of placeholders for two cases.
Click for copyable input
Fill in the placeholders to complete the piecewise expression.
Click for copyable input
To add additional cases, use Ctrl+Enter.
Click for copyable input
You can make an element in a table span over multiple rows or columns by selecting the entire block that you want the element to span and using the InsertTable/MatrixMake Spanning menu command. To split a spanning element into individual components, use InsertTable/MatrixSplit Spanning.
To make the top element span across both columns, first select the row.
Click for copyable input
Now use the Make Spanning menu command.
Click for copyable input