Display matrix rows and columns
5 posts
• Page 1 of 1
Display matrix rows and columns
I'd like to know how to display matrix columns. If you dou Matrix(1), the first row is displayed. But i don't know how to do the same but for tge column.
-
victorio12345
Niveau 4: MC (Membre Confirmé)- Posts: 3
- Joined: 02 Nov 2017, 09:36
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Display matrix rows and columns
Maybe by tranposing (column <-->lines)and then doing...
transposed_matrix(1) ?
But i dont know each instruction for that...
Then if you want a column do again a tranposing instruction.
transposed_matrix(1) ?
But i dont know each instruction for that...
Then if you want a column do again a tranposing instruction.
-
Extra44Premium
Niveau 11: LV (Légende Vivante)- Posts: 591
- Images: 1
- Joined: 20 Jan 2011, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: S.I.
Re: Display matrix rows and columns
Extra44 wrote:Maybe by tranposing (column <-->lines)and then doing...
transposed_matrix(1) ?
But i dont know each instruction for that...
Then if you want a column do again a tranposing instruction.
The thing is that if you do [1 2 3]▶Matrix(1) it introduces your vector in the first row of your matrix. So if id like to do the same but for a column i dont know if it would be practical to transpose, insert and transpose again.
-
victorio12345
Niveau 4: MC (Membre Confirmé)- Posts: 3
- Joined: 02 Nov 2017, 09:36
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Display matrix rows and columns
In CAS, if m is your matrix with n rows, you can get or set column c with m[1..n,c]
For example m:=ranm(5,5); m[1..5,2] returns column 2, m[1..5,2]=seq(j,j,1,5) sets column 2.
For example m:=ranm(5,5); m[1..5,2] returns column 2, m[1..5,2]=seq(j,j,1,5) sets column 2.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3662
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Display matrix rows and columns
parisse wrote:In CAS, if m is your matrix with n rows, you can get or set column c with m[1..n,c]
For example m:=ranm(5,5); m[1..5,2] returns column 2, m[1..5,2]=seq(j,j,1,5) sets column 2.
That was what I was looking for! Thank you very much!
-
victorio12345
Niveau 4: MC (Membre Confirmé)- Posts: 3
- Joined: 02 Nov 2017, 09:36
- Gender:
- Calculator(s):→ MyCalcs profile
5 posts
• Page 1 of 1
Return to Problèmes divers / Aide débutants
Who is online
Users browsing this forum: ClaudeBot [spider] and 2 guests