mac版matlab如何中止运行,怎样中止正在运行的程序

在Mac版MATLAB中,可以使用`cancel`函数来中止任务或作业。`cancel(t)`用于取消运行中的任务,设置其状态为`finished`,并显示错误消息。`cancel(j)`则用于停止待处理、排队或运行中的作业,同时影响所有未完成状态的任务,并重启工作会话。被取消的作业不能再次启动。
摘要由CSDN通过智能技术生成

cancel - Cancel job or task

Syntax

cancel(t)

cancel(j)

Arguments

t

Pending or running task to cancel.

j

Pending, running, or queued job to cancel.

Description

cancel(t) stops the task object, t, that is currently in the pending or running state. The task's State property is set to finished, and no output arguments are returned. An error message stating that the task was canceled is placed in the task object's ErrorMessage property, and the worker session running the task is restarted.

cancel(j) stops the job object, j, that is pending, queued, or running. The job's State property is set to finished, and a cancel is executed on all tasks in the job that are not in the finished state. A job object that has been canceled cannot be started again.

If the job is running in a job manager, any worker sessions that are evaluating tasks belong

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值