How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Alexander
il 12 Mar 2014
Risposto: Kaustubha Govind
il 12 Mar 2014
How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
0 Commenti
Risposta accettata
Kaustubha Govind
il 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'.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!