How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexander
am 12 Mär. 2014
Beantwortet: Kaustubha Govind
am 12 Mär. 2014
How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 12 Mär. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!