Clear Filters
Clear Filters

Matlab mobile doesn't execute startup.m at startup

1 view (last 30 days)
Matlab mobile doesn't execute startup.m at startup. I have a 'startup.m" file in '/MATLAB Drive', but it doesn't get executed at startup, despite the claims in 'matlabrc'. I have to type 'startup" every time I use Matlab Mobile

Answers (1)

Walter Roberson
Walter Roberson on 24 Feb 2024
The model of MATLAB Online is as-if it were continually running.
... Sort of.
The reality is that when you leave a MATLAB Online session, the session lingers for approximately 3 hours waiting for you to resume it. If you get back to it within the roughly 3 hours, then it continues on, workspace still exists; if you wait longer then the session is gone.
  1 Comment
Paul McKenzie
Paul McKenzie on 26 Feb 2024
That "answers" what MATLAB Mobile/Online DOES, but doesn't answer what it DOESN'T. If MATLAB knows the "session is gone", then starting MATLAB means it's a new session and executing startup.m at startup would seem to be the appropriate (promised?) thing to do, unless there's some downside I haven't considered.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!