Output of Simulink Discrete time derivative at the start of simulation
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Ashraful Islam
am 1 Jul. 2021
Beantwortet: Harikrishnan Balachandran Nair
am 23 Sep. 2021
Output of the discrete time derivative at the start of simulation (t=0) is very high as it seems to only divide the current input with sample time.
If it's not a bug, is there a way to use the intial input as "Initial condition" and hence outputting zero as derivative at time step t=0?
0 Kommentare
Antworten (1)
Harikrishnan Balachandran Nair
am 23 Sep. 2021
Hi,
I understand that you are trying to output an initial condition value at the simulation start time, different from the actual output from the block.
You can use the 'IC' block from the simulink library to set the initial condition of the signal at its input port.The 'IC' block outputs the specified initial condition when you start the simulation, regardless of the actual value of the input signal. Thereafter, the block outputs the actual value of the input signal.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!