Post Reply 
Taking part of a matrix.
06-30-2021, 04:42 PM
Post: #4
RE: Taking part of a matrix.
(06-30-2021 01:25 PM)Isai Wrote:  Is there any way of take part of a matrix? For example in Matlab it could be A(i:j,m:n) to take from i to j rows and m to n columns.

From the section "Matrix references" in the Prime manual:
Quote:M1({{1,1},{2,2}}) extracts a sub-matrix from the element in the first row and column to the element in the second row and column.

So your Mathlab example for A(i:j,m:n) would translate on the Prime to M1({{i,m},{j,n}})
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Taking part of a matrix. - Isai - 06-30-2021, 01:25 PM
RE: Taking part of a matrix. - ijabbott - 06-30-2021, 02:54 PM
RE: Taking part of a matrix. - robmio - 06-30-2021, 03:22 PM
RE: Taking part of a matrix. - Didier Lachieze - 06-30-2021 04:42 PM



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