필터 지우기
필터 지우기

Automatically Run a Matlab Script

조회 수: 10 (최근 30일)
Robert Henson
Robert Henson 2017년 11월 16일
댓글: Robert Henson 2017년 11월 16일
I have a script that I want to run automatically (say, each hour). How do I set this up so that it runs in an unattended manner?

채택된 답변

Image Analyst
Image Analyst 2017년 11월 16일
Use a timer:
timer class
Create object to schedule execution of MATLAB commandsexpand all in page Description Use a timer object to schedule the execution of MATLAB® commands one or multiple times. If you schedule the timer to execute multiple times, you can define the time between executions and how to handle queuing conflicts.
The timer object uses callback functions to execute commands. Callback functions execute code during some event. For the timer object, you can specify the callback function as a function handle or as a character vector. If the callback function is a character vector, MATLAB evaluates it as executable code. The timer object supports callback functions when a timer starts (StartFcn), executes (TimerFcn), stops (StopFcn), or encounters an error (ErrorFcn).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Code Execution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by