size()、length()、numel()

size()は次元ごとの要素数を返す。2次元なら[行数 列数]を返す。
length()は各次元の要素数のうち最大の要素数を返す。だからmax(size())と同じこと。
numel()は全要素数を返す。だからprod(size())と同じこと。

続きhttps://matlabacademy.mathworks.com/R2021b/jp/portal.html?course=gettingstarted#chapter=14&lesson=1§ion=1