Load Signal Data for Simulation

Configure input signals to model

You can use several different approaches to load data into a model. For help with deciding on the approach to use, see Techniques for Importing Signal Data.


Inport Create input port for subsystem or external input
From File Read data from MAT-file
From Workspace Read data from workspace
Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear
Signal Generator Generate various waveforms
Pulse Generator Generate square wave pulses at regular intervals
Step Generate step function
Chirp Signal Generate sine wave with increasing frequency
Sine Wave Generate sine wave, using simulation time as time source


signalbuilder Create and access Signal Builder blocks
getInputString Create comma-separated list of variables to map
getSlRootInportMap Create custom object to map signals to root-level inports using Simulink mapping mode
getRootInportMap Create custom object to map signals to root-level inports
Simulink.BlockDiagram.getInitialState Return initial state structure of block diagram
Simulink.Bus.createMATLABStruct Create MATLAB structures using same hierarchy and attributes as bus signals
Simulink.SimulationData.createStructOfTimeseries Create a structure with MATLAB timeseries object leaf nodes

Simulink Configuration Parameters

Was this topic helpful?