Develop Live Editor Tasks
Live Editor tasks are simple point-and-click interfaces that can be embedded into a live script. Tasks represent a series of MATLAB® commands that are automatically generated as users explore parameters. Tasks are useful because they can help reduce development time, errors, and time spent plotting.
In addition to the Live Editor tasks that MATLAB provides, you can create your own Live Editor tasks. Develop a custom
Live Editor task by defining a subclass of the LiveTask
base
class.
Classes
matlab.task.LiveTask | Base class for developing custom Live Editor tasks (Since R2022a) |
Methods
setup | Set up instance of Live Editor task subclass |
generateCode | Generate code for instance of Live Editor task subclass |
reset | Reset instance of Live Editor task subclass |
Functions
matlab.task.configureMetadata | Configure Live Editor task metadata (Since R2022a) |
matlab.task.removeMetadata | Remove Live Editor task metadata (Since R2022a) |
Topics
- Live Editor Task Development Overview
Learn the basic steps for developing a Live Editor task.
- Create Simple Live Editor Task
Create a simple Live Editor task and add it to a live script.
- Create Live Editor Task from Selection
Convert a selection in the Live Editor into your own Live Editor task.
- Share Live Editor Tasks
After creating your own Live Editor task, you can share the task for others to use in the Live Editor.