matlab - Why are "size mat" and "size(mat)" different? -
i have these results:
>> size fives 1 5 >> size(fives) 4000 17
the latter accurate. i'm not sure former doing @ all. when type size
no args error:
error using size
not enough input arguments.
so i'm not sure why "fives" , "(fives)" both count arguments different things.
in matlab, size without parenthesis gets size of literal string. example, size abcdefg 1 7 if abcdefg not defined variable.
Comments
Post a Comment