how to give the values for step block in simulink through command window.

1 vue (au cours des 30 derniers jours)
ABHIN PHILIP
ABHIN PHILIP le 28 Août 2017
i tried with set_param('modelname/step',Finalvalue','5') but its showing error. pls help me to correct the issue.

Réponses (1)

Sebastian Castro
Sebastian Castro le 28 Août 2017
While set_param is certainly an option, I'd highly recommend that you create a MATLAB variable, e.g. finalValue in the workspace. Then, use that variable name asthe Step block's final value.
- Sebastian

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by