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!