    

 ## On this page

  

 

 # GetSubMatrix 

 Last update: 09.03.2026 

Returns the sub matrix of size Ms by Ns, starting at row Midx and column Nidx.

## Interface

NameKindTypeCommentNPN/ANumber of columns in input matrixMPN/ANumber of rows in input matrixNidxPN/AStarting column of sub matrixNsPN/ANumber of columns in sub matrixMidxPN/AStarting row of sub matrixMsPN/ANumber of rows in sub matrixAInumeric^N^MInput matrixSOnumeric^Ns^MsOutput sub matrix**Parent topic:**[Matrix](./matrix.md)