Dimension 命令
- Dimension( <Object> )
-
给出向量或矩阵的维数。
Dimension({1, 2, 0, -4, 3})
得出
5
.
Dimension({{1, 2}, {3, 4}, {5, 6}})
得出
{3, 2}
.