Posts: 764
Threads: 118
Joined: Aug 2007
ADDROW.
Syntax: ADDROW(matrix name, vector, row number);
In the programming editor, find it by Cmds, 3. Matrix, 3. ADDROW
This changes the matrix permanently.
Edited: 19 Nov 2013, 10:31 p.m.
Posts: 153
Threads: 7
Joined: Jun 2008
Quote:
Is there a quick way of adding an extra top row or extra left column to an existing matrix? Or an extra row or column anywhere for that matter? I could not find that in the user's guide.
To add a row or column anywhere OTHER than the top or left edge, put the cursor on the +/- sign and press the + key. Press the - key to delete the row or column. That's what the "+/-" stands for. Unfortunately this method doesn't seem able to add a row to the top or a column to the left edge.
One easy way to add a row to the top, or a column to the left edge, is to use the Matrix Editor (Shift 4). If you have a matrix named something other than M0 through M9, you can use the Matrix Editor on it via the Memory Manager (Shift Toolbox). Your variable will be in either the User Variables or CAS Vars list, depending on whether you created in in Home or CAS, respectively.
One benefit of the Matrix Editor over doing it in the edit line is that the Matrix Editor fills new rows and columns with zeros, so you don't have to fill them all in to get a valid matrix. The edit line method only inserts place holders, and you have to fill them all in or you'll get a syntax error.