cancel
Showing results for 
Search instead for 
Did you mean: 
resolveddd
Level 2
17 8 1 0
Message 1 of 3
409
Flag Post

matrix

HP Recommended
HP Prime

how do I call just a column of a matrix    

in matlab  A[ : ,1]  how is that done on the prime

 

0 Kudos
Tags (1)
2 REPLIES 2
Joe_Horn
Level 8
622 609 117 207
Message 2 of 3
Flag Post
HP Recommended

In Home and normal programs only (not CAS):

 

M1(-2) → column 2 of matrix M1

M1(2) → row 2 of matrix M1

 

If you need a syntax that works in CAS as well, use the col() and row() commands:

 

col(M1, 2) → column 2 of matrix M1

row(M1, 2) → row 2 of matrix M1

 

Disclaimer: I don't work for HP. I'm just another happy HP calculator user.

-Joe-
resolveddd
Author
Level 2
17 8 1 0
Message 3 of 3
Flag Post
HP Recommended

thanks so much, that did it. I spend an hour or two searching the manual and if you don't know the secret code you are pretty much helpless

0 Kudos
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation