Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Simulink 模型,我想提取它包含的 Stateflow 模块的位置。我正在寻找一个受此命令启发的命令,它给出了块的总数。我该怎么做或在哪里可以找到更多信息?
首先找到所有 Stateflow 模块:
Stateflow_blocks = find_system('your simulink model','MaskType','Stateflow')
之后,获得职位:
for block = Stateflow_blocks get_param(block,'Position') end