Changing sample time of multiple blocks at once

3 次查看(过去 30 天)
Hi, I have a subsystem with many many blocks and I want to change all their sample times from 1 to -1. I was wondering if there's any shortcut to do this?

回答(1 个)

Piyush Kumar
Piyush Kumar 2024-7-31

Try Model Explorer. You can use the Model Explorer to make batch changes to many block parameter values at once. You can also write a loop to change the Sample Times of blocks programmatically using set_param.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by