Function and function name errors


I'm trying to write a simple function, e.g:

function [x y] = functionname (a, b, c, d, e)

so I create an m-file called function-name.m, with all the variables specified. However, the m-file from which I'm calling functionname does not like the name, and insists on calling it the actual name of the m-file (i.e, I get the error not enough input arguments).

How do I get around this?

You can't get around it. In MATLAB you have to name the file with the name of the function. Any functions in that file that have a different name are private (not visible to any code other than the code inside that m-file).