0
有沒有辦法找出模型中涉及的所有塊類型,我想它應該可以使用get_parameter? 謝謝如何在Simulink模型中找出所有不同的blocktyp?
有沒有辦法找出模型中涉及的所有塊類型,我想它應該可以使用get_parameter? 謝謝如何在Simulink模型中找出所有不同的blocktyp?
從find_system
開始獲取所有塊。 得到BlockType
爲每個和最後申請unique
每個類型只得到一次的結果。
%get the path to all blocks
all_blocks=find_system('untitled','lookundermasks','all','type','block')
%get the block type
unique(get_param(all_blocks,'BlockType'))
對於lookundermasks
選項,請確保選擇您想要的選項。