Matlab mobile doesn't execute startup.m at startup

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

4 Comments

Apparently true of 'MATLAB Online" as well.
I am also having this problem with MATLAB Online. It never executes my startup.m file, even though it is in the startup directory - '/MATLAB drive'.
MATLAB Online also still does not let me change the search paths, even though there is a "Set Path" button on the toolbar.
Like a lot of people, this means I have switched back to using MATLAB natively in Windows. Online seems to have been neglected in terms of improvements and development for quite a while now (this issue with startup.m not working and Set Path not working in Online has been around for at least a year).
MATLAB Online is not being neglected; it improves every few months (irregularly) and improves at the same time as each MATLAB update (1 to 3 days after the corresponding MATLAB release.)
Thank you Walter. I have noticed that the core functionality of Matlab Online does match the current standalone desktop releases, and that is one of the reasons I started using Online for my personal projects - the idea of being able to spend a few minutes here and there, whenever life permits, writing code for my own things seemed excellent. Even better was the fact that I could do so without having to have Matlab installed locally on whatever PC I happened to be using, and not needing to worry about synchronising files, etc. I am trying to get into home automation, and writing my own routines for processing sensor data and then using the results to trigger actions.
My comment was mainly to vent my frustrations at a couple of the usability problems that have been an issue in Online for some time. They are obviously minor bugs - startup.m has been around in Matlab forever, and the Set Path functionality has too - and can definitely be fixed.
I'll just keep carrying my personal laptop around for the moment.

Sign in to comment.

Answers (1)

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

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

Asked:

on 24 Feb 2024

Commented:

on 24 Nov 2024

Community Treasure Hunt

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

Start Hunting!