how to change the integrator initial conditions?
2 次查看(过去 30 天)
显示 更早的评论
In simulink I am using the integrator block. I know that the initial condition defaults to t=0. How would I change that so my initial condition starts at t=9?
0 个评论
回答(1 个)
stozaki
2020-2-5
Hello,
ret = find_system(bdroot(gcs),'BlockType','Integrator')
for N = 1:length(ret)
set_param(ret{N},'InitialCondition','9')
end
Please try its script.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!