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
Matlab[dimensions] - compute the dimensions of a MapleMatrix or MatlabMatrix using Maple
Calling Sequence
dimensions(X)
Parameters
X
-
MapleMatrix, or MatlabMatrix
Description
The command dimensions computes the size of a matrix. This command is equivalent to the Matlab[size] command.
Use dimensions for computing dimensions of Maple variables, and Matlab[size] for computing the dimensions of MATLAB variables.
If X is a string, then the size is computed using MATLAB.
Executing the dimensions command returns an integer list with n elements for an n-dimensional object. For example, a 3x4 matrix is two-dimensional, therefore a list with two elements is returned. Each element corresponds to the size of that dimension. For the 3x4 matrix, the returned list is [3, 4].
Examples
Setting two Maple matrices.
The dimensions of these matrices in Maple are computed as
[2, 3]
[3, 2]
The matrices are set in the MATLAB session
The product of maplematrix_a*maplematrix_b is computed in MATLAB and the result is assigned to matlabmatrix_c. The dimensions of the new matrix are determined with the Maple call.
[2, 2]
See Also
LinearAlgebra[Dimension], Matlab, Matlab[getvar], Matlab[setvar], MatlabMatrix
Download Help Document