HP Forums

Full Version: Matrix range
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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...
There is a trick to get also the first two columns like that?

Not a "trick", but col(M1,1..2) in CAS returns the first two columns of M1.
(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 Smile

Salvo
Reference URL's