how to rename the calibration parameter in a simulink model

6 次查看(过去 30 天)
now i want find all the calibration parameter which contains(for example 'xxx'), and rename this calibration parameter by replace xxx with yyy, expect(pedc_b_xxxMotEna ->pedc_b_yyyMotEna)

采纳的回答

kei hin
kei hin 2023-9-6
编辑:kei hin 2023-9-6
use find_system() to get all constant block's handle, then use get_param(blockhandle,'value') to get the value in constant, and then use set_param(blockhandle,'value','yyy') after check the value include 'xxx'.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by