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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -