필터 지우기
필터 지우기

Task scheduling for Matlab

조회 수: 29 (최근 30일)
Josh Jones
Josh Jones 2013년 7월 17일
답변: Tharikaa Ramesh Kumar 2024년 6월 12일
I realize this may not be exactly related to Matlab, and I've read all the other posts but have not had any success. I am trying to run a Matlab script with Task Scheduler on Windows 7. My Task scheduler command is:
cd C:\Radar_code\ matlab -r "radarprocessing.m; pause(10); exit"
and the error I keep getting in Task Scheduler is:
The system cannot find the file specified. (0x80070002)
I've tried lots of different things but it hasn't worked yet. Thanks for your help in advance.
  댓글 수: 1
Tharikaa Ramesh Kumar
Tharikaa Ramesh Kumar 2024년 6월 12일
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).

댓글을 달려면 로그인하십시오.

채택된 답변

Friedrich
Friedrich 2013년 7월 18일
편집: Friedrich 2013년 7월 18일
Hi,
this command seems pretty strange. I would rather expect that you select the MATLAB.exe as program to run in the TaskScheduler and as optional arguments use
-r "cd('C:\Radar_code\');radarprocessing.m; pause(10);exit"
Or set the start in folder to C:\Radar_code.
Here is picture:
  1. Click on the browse button and select the matlab.exe
  2. In the "Add arguments" use -r "radarprocessing.m; pause(10);exit"
  3. As "Start in" set the C:\Radar_code folder

추가 답변 (3개)

Priyanagaraj
Priyanagaraj 2023년 10월 12일
c

Priyanagaraj
Priyanagaraj 2023년 10월 12일
c

Tharikaa Ramesh Kumar
Tharikaa Ramesh Kumar 2024년 6월 12일
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).

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by