How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
1 回表示 (過去 30 日間)
古いコメントを表示
How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
0 件のコメント
採用された回答
Kaustubha Govind
2014 年 3 月 12 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!