Main Content

Signal Generation

Create signals

Objects

dsp.ColoredNoiseGenerate colored noise signal
dsp.ChirpGenerate swept-frequency cosine (chirp) signal
dsp.HDLNCOGenerate real or complex sinusoidal signals—optimized for HDL code generation
dsp.NCOGenerate real or complex sinusoidal signals
dsp.SignalSourceImport variable from workspace
dsp.SineWaveGenerate discrete sine wave

Blocks

ChirpGenerate swept-frequency cosine (chirp) signal
Colored NoiseGenerate colored noise signal
ConstantGenerate constant value
Constant RampGenerate ramp signal with length based on input dimensions
Discrete ImpulseGenerate discrete impulse
Identity MatrixGenerate matrix with ones on main diagonal and zeros elsewhere
Multiphase ClockGenerate multiple binary clock signals
N-Sample EnableOutput ones or zeros for specified number of sample times
NCOGenerate real or complex sinusoidal signals
NCO HDL OptimizedGenerate real or complex sinusoidal signals—optimized for HDL code generation
Random SourceGenerate randomly distributed values
Signal From WorkspaceImport signal from MATLAB workspace
Sine WaveGenerate continuous or discrete sine wave
Triggered Signal From WorkspaceImport signal samples from MATLAB workspace when triggered

Topics

Sample- and Frame-Based Concepts

Introduction to real-world sample- and frame-based signals, and how to model those signals in MATLAB® and Simulink®.

Discrete-Time Signals

Overview of discrete-time signals. Discusses the similarities and differences between using fixed-step solvers and variable-step solvers while handling discrete-time signals.

Continuous-Time Signals

Overview of continuous-time signals.

Create Signals for Sample-Based Processing

Use the Constant block and the Signal From Workspace block to generate signals for sample-based processing.

Create Signals for Frame-Based Processing

Use the Sine Wave block and the Signal From Workspace block to generate signals for frame-based processing.

Create Multichannel Signals for Sample-Based Processing

Use the Concatenate block to create multichannel signals for sample-based processing.

Create Multichannel Signals for Frame-Based Processing

Use the Concatenate block to create multichannel signals for frame-based processing.

Inspect Sample and Frame Rates in Simulink

Learn how to determine the sample and frame rates of signals in your model.

Delay and Latency

Configure the Simulink environment to minimize delay and increase simulation performance.

Featured Examples