Control systems scripts for Learning

Control Systems (9 scripts):

Ahora está siguiendo esta publicación

Control Systems MATLAB Toolkit — Script Descriptions
=====================================================
All scripts produce MATLAB figure plots. Some include interactive sliders.
Requires Control System Toolbox.
1. cs01_transfer_function.m
Build and inspect a transfer function. Reports poles, zeros, DC gain, order,
standard 2nd-order parameters (omega_n, zeta) and plots the pole-zero map.
2. cs02_time_response.m
Step response with annotated specs. Uses stepinfo to extract rise time, peak
time, overshoot and settling time; overlays them on the response plot.
3. cs03_stability_routh.m
Routh-Hurwitz array and range-of-K stability search. Prints the Routh array
for a numeric characteristic polynomial, then sweeps K in a feedback loop
and marks the stable range.
4. cs04_root_locus.m
Root locus with asymptote and breakaway analysis. Plots the standard textbook
example G(s)H(s) = K / [s(s+2)(s+4)] and reports asymptote angles and centroid.
4b. cs04b_root_locus_interactive.m
Interactive root locus explorer. Drag a gain slider K in [0, 100] and watch
closed-loop poles slide along the locus. A second panel shows the closed-loop
step response so you can feel how pole movement changes settling and overshoot.
5. cs05_bode_gm_pm.m
Bode plot with automatic gain and phase margin markers. Computes and prints
GM, PM and their crossover frequencies.
6. cs06_nyquist_encirclement.m
Nyquist plot and encirclement of -1 + j0. Verifies N = P - Z from the Cauchy
argument principle for G(s) = 1/(s+1)^3.
7. cs07_pid_tuner_ziegler.m
Ziegler-Nichols PID tuning demonstration. Finds the ultimate gain Ku and
period Pu for a plant, then applies the classic PID formula and compares
open-loop and closed-loop step responses.
7b. cs07b_pid_interactive.m
Interactive PID tuner with sliders. Drag Kp/Ki/Kd sliders and watch the live
step response, pole map and control effort plot update. A "Reset to Z-N"
button snaps gains back to Ziegler-Nichols tuning.

Citar como

SK (2026). Control systems scripts for Learning (https://la.mathworks.com/matlabcentral/fileexchange/184298-control-systems-scripts-for-learning), MATLAB Central File Exchange. Recuperado .

Etiquetas

Añadir etiquetas

Add the first tag.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0