Simulink function's output is it's input
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello. Let's say we have this simple function block that increases it's input by one.
It doesn't work, since at the beginning the output is undefined so I need to put some kind of delay. What kind of delay do I put so that output is delayed EXACTLY one step.
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 3 Dez. 2011
Use the "Unit Delay" block from Simulink->Descrete library. Put it in the feedback loop. You can set an initial value for it too. To get the "increment by 1" functionality, the starting number constant needs to be 1.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Discontinuities 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!