Transfer function and lsim
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ehsan Khorsandnejad
el 11 de Feb. de 2019
Editada: Ehsan Khorsandnejad
el 14 de Feb. de 2019
I know that the time response of an arbitrary input can be obtained using the lsim function. However, is there a continuous form of this function? Normally, we have to introduce a time vector with constant time steps to lsim so that it can calculate the time response. However, it seems it is different in SIMULINK, where the time response is calculated continuously. Does anyone know how SIMULINK does that and if it can be used in MATLAB as well or not?
0 comentarios
Respuestas (1)
Mark Sherstan
el 11 de Feb. de 2019
lsim has the option for both contionous and discrete. When defining your input time vector decrease the time step to mimick a "continous" signal if you are experiancing discontinuties or other unwanted results. The difference compared to SIMULINK is that it is uses some ODE solver which deals with these time steps "behind the scenes" depending on which solver you are using.
1 comentario
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!