Post Reply 
Matrix range
06-06-2015, 06:14 PM (This post was last modified: 06-07-2015 07:22 AM by salvomic.)
Post: #1
Matrix range
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

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2015, 03:29 AM
Post: #2
RE: Matrix range
(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.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2015, 07:21 AM
Post: #3
RE: Matrix range
(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

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)