how to change the integrator initial conditions?
이전 댓글 표시
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?
답변 (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.
댓글 수: 2
Trevor Hutchinson
2020년 2월 5일
stozaki
2020년 2월 8일
I attached initialize Function model.
Please see initialize Function
카테고리
도움말 센터 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!