How can I get signal dimensions in Simulink model

前端 未结 3 1397
梦谈多话
梦谈多话 2021-01-06 13:07

I have a question.

After simulate a simulink model I need to get signal dimensions of each line using MATLAB command.

I get line handles by following

<
3条回答
  •  爱一瞬间的悲伤
    2021-01-06 13:50

    If you have a set of line handles from your find_system command you can use the following command to get the block connected to the signal.

    hblkSrc = get_param(h(k),'SrcBlockHandle');
    

    You can then use get_param(hblkSrc,'CompiledPortDimensions') as suggested by am304 to get the dimensions.

提交回复
热议问题