Entering Tables and Matrices
front end provides an 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.
treats an array like this as a matrix represented by a list of lists.
Putting parentheses around the array makes it look more like a matrix, but does not affect its interpretation.
|Ctrl+,||add a column|
|Ctrl+Enter||add a row|
|Tab||go to the next or element|
|Ctrl+Space||move out of the table or matrix|
Entering tables and matrices.
Note that you can use Ctrl+,
to start building up an array, and particularly for small arrays this is often more convenient than using the menu item in the submenu. The 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.
Fill in the placeholders to complete the piecewise expression.
To add additional cases, use Ctrl+Enter
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 menu command. To split a spanning element into individual components, use .
To make the top element span across both columns, first select the row.
Now use the menu command.