James W. Kamman, Ph.D.
Associate Professor Emeritus
Mechanical & Aerospace Engineering
Western Michigan University
Home Up Course Notes Homework Experiments Hydraulic Trainers MATLAB

ME 4710 - Motion and Control: MATLAB Examples

The following are links to the sample MATLAB examples discussed in class. The first file (of each pair) is a MATLAB M-file, and the second is a PDF file with sample published output. Examples 17-20 are Simulink examples.

  1. SMD with Proportional (P) Control    

    Published Output: PDF file with typical output

  2. SMD with Proportional (P) Control (with Bode diagram)   

    Published Output: PDF file with typical output

  3. SMD with PD Control

    Published Output: PDF file with typical output

  4. SMD with PD Control (with Bode diagram)

    Published Output: PDF file with typical output

  5. SMD with PI Control

    Published Output: PDF file with typical output

  6. SMD with PI Control (with Bode diagram)

    Published Output: PDF file with typical output

  7. SMD with PID Control

    Published Output: PDF file with typical output

  8. SMD with PID Control (with Bode diagram)

    Published Output: PDF file with typical output

  9. Hydraulic Actuator with Proportional (P) Control

    Published Output: PDF file with typical output

  10. Hydraulic Actuator with PD Control

    Published Output: PDF file with typical output

  11. Hydraulic Actuator with PI Control

    Published Output: PDF file with typical output

  12. Hydraulic Actuator with PID Control

    Published Output: PDF file with typical output

  13. SMD with Phase-Lead Control using Bode diagrams

    Published Output: PDF file with typical output

  14. SMD with Phase-Lead Control using Root Locus diagrams

    Published Output: PDF file with typical output

  15. SMD with Phase-Lag Control using Bode diagrams

    Published Output: PDF file with typical output

  16. SMD with Phase-Lag Control using Root Locus diagrams

    Published Output: PDF file with typical output

  17. Aircraft Attitude Control - No Prefilter (Simulink file)

  18. Aircraft Attitude Control - with Prefilter (Simulink file)

  19. PID Control of a Hydraulic Actuator with Anti-Windup - Model 1 (Simulink file)

  20. PID Control of a Hydraulic Actuator with Anti-Windup - Model 2 (Simulink file)

  21. PID Control of a Hydraulic Actuator - No Noise Filter

    Published Output: PDF file with typical output

  22. PID Control of a Hydraulic Actuator - With Noise Filter

    Published Output: PDF file with typical output