MATLAB: Invalid expression error when i execute code

error invalid

Can anyone tell whats the problem with this code

Best Answer

You can't use numbers as a variable names.
Valid variable and function names begin with an alphabetic character, and can contain letters, numbers, or underscores.
You must write:
function j3012 = RCPSP(var1,var2,var3)