How can i read from Matlab m-File the Data Type and Dimension of Simulink Model Signals?
조회 수: 2 (최근 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개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!