MATLAB: Notation

notation

what does () mean in the line below?
x=somefunction()

Best Answer

Then somefunction.m does not take input arguments for example:
function x = somefunction
x = 2;
end
if you call
x = somefunction()
you get x = 2
you can also just enter
x = somefunction;
Related Question