Can I schedule a job in Matlab online

3 Ansichten (letzte 30 Tage)
Prasanna S
Prasanna S am 20 Okt. 2020
Hi Team,
I would like to know if I can schedule to run a job in background using matalb online.
I have *.m file, which I need to execute once in an hour, Is it possible for me to schedule a job to run this in background in matlab online.
  1 Kommentar
Tharikaa Ramesh Kumar
Tharikaa Ramesh Kumar am 11 Jun. 2024
Do you run time-consuming tasks on MATLAB and Simulink? Do you wish you could schedule them and run them in the background, unattended? How do you solve this question today?
MATLAB Product team is very interested to talk to you and learn from your experience. Please participate in this brief survey (6 questions).

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Walter Roberson
Walter Roberson am 20 Okt. 2020
You can use timer objects.
Note that MATLAB Online will time out if you do not interact with the session from time to time. Something like every 15 minutes.
You cannot use MATLAB Online to run code when you are not connected with an active session.

Michael Croucher
Michael Croucher am 20 Okt. 2020
One way of achieving your aim would be to use the public cloud. Compile your .m file using MATLAB Compiler, install it on a cloud VM instance and use something like AWS Instance Scheduler to schedule the running of your machines.
There'd be a bit of additional work to do such as getting your input/output from S3 object store https://www.mathworks.com/help/matlab/import_export/work-with-remote-data.html and you'd also need to experiment with instance sizes to ensure you get the cheapest one possible for your workload.
I've never actually done this for MATLAB but I can't see why it shouldn't work.
There's also a reference Docker implementation: https://github.com/mathworks-ref-arch/matlab-dockerfile which you might be able to make use of for a Docker based workflow.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by