I found the answer, weighing factors can be used! In other words applying a step3 function from 0 to 1 on the starting curve and from 1 to 0 on the target curve.
Transition from one condition to another with a certain pattern - Simulink
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
patr chri
am 3 Aug. 2022
Bearbeitet: Sam Chak
am 3 Aug. 2022
Hi,
I have a switch case block with which I am "enabling" different subsystems which represent different conditions of a system. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1086805/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1086805/image.png)
During the transition between the different conditions I am getting an abrupt change from one condition to the other while I would like to induce a delay of certain seconds. As an example, in the following picture, the red line represents the result of condition 1 and the yellow line the result of condition 2. I would like to know how it would be possible in Simulink to induce the blue curve behaviour during the transition time at t1 between condition 1 to condition 2.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1086810/image.png)
For now I have written the STEP3 transition function, but I am struggling with making it work in the model. Any help would be greatly appreciated.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Sam Chak
am 3 Aug. 2022
Bearbeitet: Sam Chak
am 3 Aug. 2022
Hi @patr chri
Mathematically yes, the smooth path of transition can be designed. Here is an example:
Guess you have found the way to "build" the weight factor equations to describe the weights:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Additional Math and Discrete 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!