How to access Data dictionary data in matlab function block simulink

I am having problems with using data from data dictionary in a matlab function block. If i have some constants store in the data dictionary that i want to use inside a matlab function block, how do i do that?

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 1 Nov. 2018

2 Stimmen

Add a "data" to the MATLAB Function block and specify its scope as "Parameter" (rather than input or output). Have "data" defined in your Simulink data dictionary.

Kategorien

Mehr zu Manage Design Data finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018a

Gefragt:

am 1 Nov. 2018

Beantwortet:

am 1 Nov. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by