Task scheduling for Matlab

17 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(2 个)

Priyanagaraj
Priyanagaraj 2023-10-12
c

Priyanagaraj
Priyanagaraj 2023-10-12
c

类别

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