The reason behind the error is that,
You are using 2 different names for function name and file name i.e new and Ve.
In MATLAB, if the function has only one function definition, the name of the file must match the name of the function.
So consider either of the following
- Naming your file to new
- Naming your function to Ve
To know more about functions, refer to the documenation page: functions