找到句柄
handle = getSimulinkBlockHandle('CANTA_BMS_DEBUG_3/CANTA_BMS_DEBUG_3/Subsystem/Constant')
get(handle)
獲得模塊的屬性,找到Position項,其格式為:
Position項
positon = [a b c d]
- a 模塊左側位置
- b 模塊上側位置
- c 模塊右側位置
- d 模塊下側位置
- 注意:c>a,d>b
可通過程序設置參數,更新位置
pos = [155 0 195 345]
set_param('CANTA_BMS_DEBUG_3/CANTA_BMS_DEBUG_3/Subsystem/Constant','Position',pos)