Matlab[square] - determine whether a MapleMatrix or MatlabMatrix is square
|
Calling Sequence
|
|
square(X)
|
|
Parameters
|
|
X
|
-
|
MapleMatrix or MatlabMatrix
|
|
|
|
|
Description
|
|
•
|
The square command returns a value of 'true' if X is a square matrix. All constants are considered to be one-by-one square matrices.
|
•
|
A cubic matrix is not square. A square matrix can have at most two dimensions.
|
•
|
Executing the square command returns a value of either 'true' or 'false'.
|
|
|
Examples
|
|
Setting a Maple matrix in MATLAB(R).
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
Determine whether these matrices are square.
>
|
|
>
|
|
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. Determine whether the new MatlabMatrix is square.
>
|
|
>
|
|
|
|
Download Help Document
Was this information helpful?