Matrix range - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: HP Prime ( /forum-5.html)+--- Thread: Matrix range ( /thread-4100.html) |

Matrix range - salvomic - 06-06-2015 06:14 PM
I didn't know, but inputting M1(1..2) Prime return matrix M1 with the first 2 rows... There is a trick to get also the first two columns like that? Another thing: mat:= delcols(m, (r+1) .. c); doesn't run in a program (in Home it complains that there are two decimal dots...; in CAS gives error also): any other simple command to extract a range from a matrix? EDIT: found this other thing: SUB(m, {1,1}, {r,r}); Salvo RE: Matrix range - Joe Horn - 06-07-2015 03:29 AM
(06-06-2015 06:14 PM)salvomic Wrote: I didn't know, but inputting M1(1..2) Prime return matrix M1 with the first 2 rows... Not a "trick", but col(M1,1..2) in CAS returns the first two columns of M1. RE: Matrix range - salvomic - 06-07-2015 07:21 AM
(06-07-2015 03:29 AM)Joe Horn Wrote: Not a "trick", but col(M1,1..2) in CAS returns the first two columns of M1. oh, thanks! it works Salvo |