Can I schedule a job in Matlab online
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
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).
Antworten (2)
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.
0 Kommentare
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.
0 Kommentare
Siehe auch
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!