close

How to get the size of a Matrix

Assume L is a 2-dimensional Matrix ,

We can use the function size() to return the size of the Matrix.

for Example:

L = [2 3];

s = size(L). 

rowSize = s(0)  // We can get the row size of matrix L.

columeSize = s(1) is the column size of matrix L.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JerryCheng 的頭像
    JerryCheng

    KwCheng's blog

    JerryCheng 發表在 痞客邦 留言(0) 人氣()