How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?

1 vue (au cours des 30 derniers jours)
How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 12 Mar 2014
These are block properties available for query after the model has been compiled. For example, for the model vdp:
vdp([],[],[],'compile');
d = get_param(gcb,'CompiledPortDataTypes');
s = get_param(gcb,'CompiledPortDimensions');
vdp([],[],[],'term');
Refer to Common Block Properties for a list of such properties. The ones available only after compile are prefixed with the word 'Compiled'.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by