Generate Waveform
Description
The Generate Waveform task lets you create common waveforms. The task automatically generates MATLAB® code for your live script.
Using this task, you can interactively create data from common waveforms using vectors,
timeseries, timetables, and data arrays. For general
information about Live Editor tasks, see Add Interactive Tasks to a Live Script.
By default, the live task creates a workspace variable,
generatedWaveform.
Open the Task
To add the Generate Waveform task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Generate Waveform.
In a code block in the script, type a relevant keyword, such as
generate waveform,vector,timeseries,timetable,input,signal,source, orwaveform. From the selected completions, select Generate Waveform.

Parameters
Version History
Introduced in R2025a





