A simple MATLAB Application that can simulate an LTI system of any order provided the input/output equation or the transfer function parameters and the input function, you can visualize the system response as well as the system states and the state space representation matrices.
The Application does not use any ready-made libraries or functions to implement the simulation.
It uses Runge–Kutta Method
to solve the differential equations and Finite Difference Methods
as an approximation to calculate the derivatives.
- Zero initial conditions.
- The simulation time equals 30s.
1. git clone https://github.com/hassanelshazly/systems_simulator
2. open MATALB and change the current folder to src inside the repo folder
3. Run command 'systems'
The input parameters are the based on the following equation
- Unit step
- Unit impulse
- Any u(t) function (must be a MATLAB expression)
You can also input random parameters using Random button.
The bottom section is used to visualize the input, output, and the states. It is adaptive depending on the number of the states of the system.
This project is licensed under MIT License