To swap two columns in an array, Extracting and replacing elements of matrices, To extract the element at a specified position – HP 49g Graphing Calculator User Manual

Page 54: To replace an element at a specified position, Extracting and replacing elements of matrices -13

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

To swap two

columns

in an array

1. Select the Colmim Swap command,

0 (MfiCB) CREATE COLUMN CSWP

2. Entei" or select the matrix with the coluimis you want to swap.

3. Enter the number of the one of the columns you want to swap.

4.

Enter the number of the other column you want to swap.

5. Press (ENTER).

The result is the array with the two specified columns swapped.

Extracting and replacing elements oF matrices

To extract the element at a specified position

1. Select the Get Element command.

0 (WSS) CREATE GET

2. Enter or select the array with the element you want to extract.

3. Enter either:

• a list containing the row number and column number of the

element you want to extract, or

• the position number—that is, row-major number—of the element

you want to extract.

4. Press (ENTER).

The result is the extracted element.

To replace an element at a specified position

1. Select the Put Element command.

CREATE PUT

2. Enter or select the array with tlie element you want to replace.

3. Enter either:

• a list containing the row number and column number of the

element you want to replace, or

• the position number—that is, row-major number—of the element

you want to replace.

4.

Press

(ENTER).

The result is a modified array.

Matrices and linear algebra

Page 5-13

Advertising