Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
LinearAlgebra[SubMatrix] - construct a submatrix of a Matrix
LinearAlgebra[SubVector] - construct a subvector of a Vector
Calling Sequence
SubMatrix(A, r, c, options)
SubVector(V, i, options)
Parameters
A
-
Matrix
r
integer, range with integer endpoints, or list of integers and/or ranges with integer endpoints; the indices of the Matrix rows used to construct the submatrix
c
integer, range with integer endpoints, or list of integers and/or ranges with integer endpoints; the indices of the Matrix columns used to construct the submatrix
V
Vector
i
integer, range with integer endpoints, or list of integers and/or ranges with integer endpoints; the indices of the Vector elements used to construct the subvector
options
(optional); constructor options for the result object
Description
The SubMatrix(A, r, c) function returns a Matrix created by using the entries of A that are in the intersection of the rows and columns specified by r and c. For more information regarding parameters r and c, see Matrix and Vector Entry Selection.
The SubVector(V, i) function returns a Vector created by using the entries of V that are specified by i. The orientation of the resulting subvector is the same as the orientation of V. For more information regarding parameter i, see Matrix and Vector Entry Selection.
The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Matrix or Vector constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list. If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
This function is part of the LinearAlgebra package, and so it can be used in the form SubMatrix(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[SubMatrix](..).
Examples
See Also
LinearAlgebra[Column], LinearAlgebra[Minor], LinearAlgebra[Row], Matrix, MVextract, MVselect, Vector
Download Help Document