Simulation of a PID controlled system for a reference step input.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
step_pid
Simulation of a PID controlled system for a reference step input. Input arguments are process dynamics and PID parameters. Output parameters are step response data and state trajectories.
This function is an extension of the conventional step function designed to simulate closed loop systems. Process dynamics defined using function handle, state space model and transfer function are accepted. The controlled variable must be the first state.
Syntax
[y,x] = step_pid(sys,t,Kp,Ki,Kd,N,R)
[y,x] = step_pid(sys,t,Kp,Ki,Kd,N,R,S)
Input Arguments:
sys - Function handle, state space of transfer function.
t - time vector
Kp, Ki, Kd - Controller gains
N - Derivative filter coefficient
R - Step amplitude
S - Number of state variables (Only for sys=function handle)
Output Arguments:
y - Step response data
x - State trajectories
Cite As
André de Souza Mendes (2026). step_pid (https://github.com/andresmendes/step_pid/releases/tag/1.0.3), GitHub. Retrieved .
General Information
- Version 1.0.3 (2.7 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.3 | See release notes for this release on GitHub: https://github.com/andresmendes/step_pid/releases/tag/1.0.3 |
||
| 1.0.2 | See release notes for this release on GitHub: https://github.com/andresmendes/step_pid/releases/tag/1.0.2 |
||
| 1.0.1 | See release notes for this release on GitHub: https://github.com/andresmendes/step_pid/releases/tag/1.0.1 |
||
| 1.0.0 |


