Is there a way to change the parameter in simulink??

3 Ansichten (letzte 30 Tage)
Ki Hyeon Jang
Ki Hyeon Jang am 4 Jul. 2020
Kommentiert: Ki Hyeon Jang am 10 Jul. 2020
When I run my simulink, I import a script file to initial parameter values(ex. num1).
then i calculate brightness value and want to change the initial parameter value dynamically.
And i will want to apply to this parameter for next frame or another block. Since this reason, i am searching method that change the value in workspace.
but i don't find proper method of this(i think that 'evalin' doesn't seem to be the proper solution)
Is there a way to change the parameter in simulink??
If it is expressed in figure, it is as bellow
thank you for all~

Akzeptierte Antwort

Kiran Kintali
Kiran Kintali am 4 Jul. 2020
Have you considered using to workspace and from workspace blocks and logging your time series data and reading it back in?
  3 Kommentare
Kiran Kintali
Kiran Kintali am 6 Jul. 2020
Can you use a constant block configured with corresponding values? I think it should be supported. If not you can write a simple MATLAB function block (with no inputs and only output variables; basically mimicking a source).
Ki Hyeon Jang
Ki Hyeon Jang am 10 Jul. 2020
oh! thanks a lot~

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by