Main Content

Waveform Generation

Pulses, chirps, VCOs, sinc functions, periodic/aperiodic and modulated signals

Generate linear, quadratic, and logarithmic chirps using chirp. Create square, rectangular, and triangular waves using square, rectpuls, and sawtooth.


expand all

chirpSwept-frequency cosine
diricDirichlet or periodic sinc function
gauspulsGaussian-modulated sinusoidal RF pulse
gmonopulsGaussian monopulse
pulstranPulse train
randnNormally distributed random numbers
rectpulsSampled aperiodic rectangle
sawtoothSawtooth or triangle wave
sinSine of argument in radians
sincSinc function
squareSquare wave
stemPlot discrete sequence data
tripulsSampled aperiodic triangle
vcoVoltage-controlled oscillator
bufferBuffer signal vector into matrix of data frames
demodDemodulation for communications simulation
modulateModulation for communications simulation
shiftdataShift data to operate on specified dimension
unshiftdataInverse of shiftdata
udecodeDecode 2n-level quantized integer inputs to floating-point outputs
uencodeQuantize and encode floating-point inputs to integer outputs
marcumqGeneralized Marcum Q function


Signal Generation and Visualization

Generate periodic and aperiodic waveforms, sequences such as impulses, steps, and ramps, multichannel signals, pulse trains, sincs, and Dirichlet functions.

Supported File Formats for Import and Export

Table of file formats that MATLAB® can read and write, and recommended functions.

Create Uniform and Nonuniform Time Vectors

Create time vectors to use as independent variables in computations involving time series.

Waveform Generation: Time Vectors and Sinusoids

Generate a vector representing a time base. Create a sample signal consisting of two sinusoids.

Impulse, Step, and Ramp Functions

Generate a unit impulse, a unit step, a unit ramp, and a unit parabola.

Common Periodic Waveforms

Generate widely used periodic waveforms such as sawtooth waves and square waves.

Common Aperiodic Waveforms

Generate widely used aperiodic waveforms such as Gaussian-modulated sinusoidal pulses and linear, logarithmic, or quadratic chirps.

The pulstran Function

Generate pulse trains from either continuous or sampled prototype pulses.

The Sinc Function

Compute the mathematical sinc function for an input vector or matrix.

The Dirichlet Function

Compute the Dirichlet function, sometimes called the periodic sinc or aliased sinc function.

Featured Examples