square - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

Matlab

  

square

  

determine whether a MapleMatrix or MatlabMatrix is square

 

Calling Sequence

Parameters

Description

Examples

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®.

withMatlab:

maplematrix_aMatrix1,2,3,3,4,5

maplematrix_a123345

(1)

maplematrix_bMatrix8,7,6,3,2,1

maplematrix_b876321

(2)

Determine whether these matrices are square.

Matlabsquaremaplematrix_a

false

Matlabsquaremaplematrix_b

false

The matrices are set in the MATLAB® session

setvarmatlabmatrix_a,maplematrix_a

setvarmatlabmatrix_b,maplematrix_b

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.

MatlabevalMmatlabmatrix_c=matlabmatrix_a*matlabmatrix_b

Matlabsquarematlabmatrix_c

true

See Also

dot

LinearAlgebra[Dimension]

Matlab

Matlab[dimensions]

Matlab[size]

MatlabMatrix

 


Download Help Document