How do I change the initial value and final value parameters in a step change in Simulink from an m-file?

3 Ansichten (letzte 30 Tage)
The set_param('blockname','initial value','1') does not change the initial step value. Help!!

Antworten (1)

Rajanya
Rajanya am 11 Feb. 2025
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.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by