Maple等效于Matlab矩阵(1:N)?

时间:2015-05-04 09:32:02

标签: matlab matrix indexing maple

什么是Maple等效于Matlab矩阵(1:N),那么如何才能到达Maple中的矩阵元素?

1 个答案:

答案 0 :(得分:1)

M := LinearAlgebra:-RandomMatrix(4);

                         [-93    -32     8     44]
                         [                       ]
                         [-76    -74    69     92]
                    M := [                       ]
                         [-72     -4    99    -31]
                         [                       ]
                         [ -2     27    29     67]


M[2..4,1..2];

                             [-76    -74]
                             [          ]
                             [-72     -4]
                             [          ]
                             [ -2     27]


M[2..3,..];

                       [-76    -74    69     92]
                       [                       ]
                       [-72     -4    99    -31]


M[..,2..4];

                          [-32     8     44]
                          [                ]
                          [-74    69     92]
                          [                ]
                          [ -4    99    -31]
                          [                ]
                          [ 27    29     67]

有关详情,请参阅帮助主题rtable_indexing