Re: Defining Paths Before MATLAB (6.5) Starts
Thanks. I finally got this working after mistakenly calling an M file from
I now execute:
matlab -nodesktop -nosplash -r "addpath(genpath('/home/user/')); cd
Would it not extend MATLAB's functionality if one could call an M file
rather than having a long sequence of commands though?
"Steven Lord" <firstname.lastname@example.org> wrote in message
> Roy S Schestowitz wrote:
> > I'm afraid not. I have no control over MATLAB in a way that makes it
> > customisable, but I can call it with extra arguments -- a call that I
> > can store locally, e.g. in batch mode.
> > Roy
> Take a look at "Startup Options" under the "Starting and Quitting MATLAB"
> chapter of the "Development Environment" section of the documentation:
> You should have permissions to your ~/matlab directory. Alternately, you
> can have your batch mode call to MATLAB use the -r flag to tell MATLAB to
> execute a configuration M-file (containing "addpath(genpath("~/"))" ) just
> after it starts.
> Steve Lord