任务调度程序打开MATLAB,但不运行file.m

时间:2021-08-19 05:06:23

My task scheduler opens MATLAB, but doesnt run 'file.m'. It just stands there with the cursor flashing in the command window!

我的任务调度程序打开MATLAB,但没有运行'file.m'。它只是站在那里,光标在命令窗口中闪烁!

This is more than frustrating. Please help me, please.

这不仅令人沮丧。请帮帮我。

I have added the path to the file so it is not to do with pointing to the path.

我已经添加了文件的路径,因此它与指向路径无关。

It runs normally when I click run 'file.m'

单击运行'file.m'时它会正常运行

1 个解决方案

#1


For my scheduled task I have the following setup:

对于我的计划任务,我有以下设置:

  • Action: Start a program (from the dropdown list)
  • 操作:启动程序(从下拉列表中)

  • Programs/script: "C:\Program Files\MATLAB\R2011\bin\matlab.exe"
  • 程序/脚本:“C:\ Program Files \ MATLAB \ R2011 \ bin \ matlab.exe”

  • Add arguments (optional): -r mfilename
  • 添加参数(可选): - r mfilename

  • Start in (optional): C:\my\mfile\folder
  • 从(可选)开始:C:\ my \ mfile \ folder

Here's a glimpse of the position of the arguments:

以下是对参数位置的一瞥:

任务调度程序打开MATLAB,但不运行file.m

These options can be found in the action tab of your scheduled job.

可以在预定作业的操作选项卡中找到这些选项。

#1


For my scheduled task I have the following setup:

对于我的计划任务,我有以下设置:

  • Action: Start a program (from the dropdown list)
  • 操作:启动程序(从下拉列表中)

  • Programs/script: "C:\Program Files\MATLAB\R2011\bin\matlab.exe"
  • 程序/脚本:“C:\ Program Files \ MATLAB \ R2011 \ bin \ matlab.exe”

  • Add arguments (optional): -r mfilename
  • 添加参数(可选): - r mfilename

  • Start in (optional): C:\my\mfile\folder
  • 从(可选)开始:C:\ my \ mfile \ folder

Here's a glimpse of the position of the arguments:

以下是对参数位置的一瞥:

任务调度程序打开MATLAB,但不运行file.m

These options can be found in the action tab of your scheduled job.

可以在预定作业的操作选项卡中找到这些选项。