How do I change the initial value and final value parameters in a step change in Simulink from an m-file?
조회 수: 2 (최근 30일)
이전 댓글 표시
The set_param('blockname','initial value','1') does not change the initial step value. Help!!
댓글 수: 0
답변 (1개)
Rajanya
2025년 2월 11일
The 'initial value' parameter in the 'Step function' is called 'Before' for programmatic use - refer here.
The following successfully sets the initial value parameter of the Step block:
set_param(get_param(gcb,'Handle'),'Before','<value_to_be_set>');
%current block set to the Step block
Thanks.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!