You have a variable called "size".
If this is a script, do
clear size
and then run the script again.
If this is a function, rename your size variable to another name that's not a function's name.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!