How can I find order (or size) of a defined matrix (2D Array)?

3 views (last 30 days)
Ex: A=[ 1 2 3; 4 5 6; 7 8 9];

Accepted Answer

Star Strider
Star Strider on 23 Aug 2022
Try this
A=[ 1 2 3; 4 5 6; 7 8 9];
szA = size(A)
szA = 1×2
3 3
.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!