Filter löschen
Filter löschen

Is it possible to assign the size of an input port to variables instead of fixed constants?

2 Ansichten (letzte 30 Tage)
I am using an input port in a Simulink model that will be compiled and I need to set the starting size of the input port in order to compile the model without errors.
An array of size (i x j) is used as the input to the model, where i = rows and j = columns. i and j change values each time the compiled model is called but the values are known prior to the model being called.
Is it possible to define the size of the input port as (i x j) and assign values to these variables each time the model is called? My idea at the moment is to use two additional inputs to define the size of the rows and columns but I don't know how (or if) these can be used to size the orignal input port.

Akzeptierte Antwort

Mark McBroom
Mark McBroom am 27 Okt. 2023

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by