You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Matlab中是否存在taskset()函数?该函数是否已被弃用?

关于MATLAB中taskset()函数的说明

Hey there! As someone new to MATLAB, it makes total sense to be confused about this—let's clear it up:

  • taskset() is not a native MATLAB function
    You won't find it in MathWorks' official documentation, either in current MATLAB releases or archived older versions. It's never been part of MATLAB's core toolbox or any official add-on.

  • What is it, then?
    The taskset() in your code is almost certainly a custom user-defined function or part of a third-party toolbox/academic codebase. Looking at your code snippet, it's used to create a scheduling object (since you later set properties like .Name and use functions like add_schedule, get_schedule, and plot() on it). This whole workflow looks like it's part of a custom tool for visualizing task scheduling algorithms.

  • How to get your code working?

    • Double-check if you missed downloading a companion taskset.m file along with the code snippet—custom functions need to be in MATLAB's working directory or path to run.
    • If you can't find the original taskset implementation, you might need to build it yourself based on what the code expects: it takes task duration values (task(3,:)) and returns an object that supports properties like .ProcTime and methods like add_schedule.
    • The other functions (add_schedule, get_schedule) are also non-native, so you'll need the full set of custom files from the original code source.

内容的提问来源于stack exchange,提问作者mtalbquestion 1

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:23:31