Repeating stair sequence does not hold value when plotting on MATLAB
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarah Jones
am 12 Mai 2020
Kommentiert: Sarah Jones
am 12 Mai 2020
I am trying to plot an output response when there is set point changes. I have used a repeating stair with a sample time of 1000 seconds to add a step change every 1000 seconds. The graphical output on the scope block on simulink is as expected (graph 1), however, I have then tried to plot the graph in MATLAb with two yaxis and the repeating stair value plots for every value at 1000 seconds (2nd graph). I understand this is becuase the variable in the workspace only has a value for every 1000th second, is there anyway I can get the repeating stair sequence to hold the value until the next value?
Graph 1:

Graph 2:

Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!