My matlab files are like:
- main.m
- func1.m
- func2.m
- func3.m
I want to include the function definitions in the main.m
file.
main.m
with function definitions included runs well in GUI. However, it fails in command line. I have to keep the function definitions in separate files. Any clue how to work around this problem?
Here is the command line that I use
matlab -nodisplay -nosplash -nodesktop < main.m > log &