Say you have a function that you can call by saying:
Now the 'Location' in question is always the location of the script which is running the function so would always be defined as:
Location = mfilename('fullpath')
Is there any way of getting a function to automatically acquire the input argument 'Location'? That way I could avoid anyone who might use my function from entering the wrong location out of confusion (the script in question deals with a number of locations).