I have a function 'main.m' that I want to accept a file path as input in a shell script.
matlab -r main($P)
matlab -r main('/path/to/file.csv')
I have 'main.m' written as a function with no output. e.g.:
I'm not sure if there are errors in the function declaration, the script syntax or both for this purpose. Any guidance is appreciated! Running MATLAB R2017a