simulink source that follows a sequence until it reaches a constant value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Leo Rogers
am 29 Mär. 2023
Kommentiert: Leo Rogers
am 29 Mär. 2023
Hey all, a maybe complicated question, I was wondering how to create a source like a repeating sequence in simulink, but instead of repeating, outputs at the arrays steady state value after the end of the source array until the end of the simulation.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1339644/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1339644/image.png)
I cant think of a simple way to do this, im guessing it might involve a matlab function block, any help is appreciated. Thanks!
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 29 Mär. 2023
Bearbeitet: Fangjun Jiang
am 29 Mär. 2023
You have the arry of time-value pairs. Use them in a 1-D lookup table. Use the simulation clock as the input, specify "Clip" for "Extrapolation method:" and specify "Use last table value ...'.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu General Applications 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!