Creating & Populating a Simulink Dataset from Simulink model

A Simulink project with files to help create a Simulink Dataset and populate the signal data
141 download
Aggiornato 28 lug 2025

Visualizza la licenza

Nota dell'editore: This file was selected as MATLAB Central Pick of the Week

How does this work?
1.ssThe Dataset is created from a models interface (root inports).
2.ssThis Dataset is then populated with data specified by you. If your data is of the wrong type, data will be cast to the datatype of the root inport.
3.ssIf placing this Dataset in the base workspace, you can set up this Dataset as external inputs to the model and simulate.
a.ssUse Configuration Parameters to set external input string, or
b.ssUse Root Inport Mapping with port order or block name mapping mode.
What is supported?
1.ssBuilt-in datatypes
2.ssEnumerations
3.ssSignals with dimensions (scalar and array)
What are the limitations?
1.ssNo busses
2.ssNo array of busses
3.ssNo functions calls
See tryMe*.m in the project for examples of how to use in a MATLAB script.
Follow these directions to create your own Simulink project from this one:

Cita come

Stacey Gage (2025). Creating & Populating a Simulink Dataset from Simulink model (https://it.mathworks.com/matlabcentral/fileexchange/58047-creating-populating-a-simulink-dataset-from-simulink-model), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.3.0.1

updated the link to create project in the description

1.3.0.0

Update to use new R2017a function, createInputDataset.m

1.2.0.0

Add ability to generate Simulink Dataset from models with inherited properties on inports

1.1.0.0

1) Set default signal times to use model start time and stop time.
2) Integer signals use linear interpolation instead of zero-order hold.
3) Included README.m file in project work directory.

1.0.0.0

first submission