How can I get signal dimensions in Simulink model

前端 未结 3 1407
梦谈多话
梦谈多话 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:44

    Alternatively, you can find the signal dimensions and signal widths of each block they originate from, using:

    get_param(,'CompiledPortDimensions')
    get_param(,'CompiledPortWidths')
    

    Replacing with the appropriate block path for each block of interest. The model must be compiled before you can run these commands, but since you indicate doing this after running the model, that shouldn't be a problem.

提交回复
热议问题