MATLAB based PID controller

A very simple and effective way to build a PID controller in a single m.code

現在この提出コンテンツをフォロー中です。

This code generates a PID controller in MATLAB environment without using any built-in commands or simulink blocks.
Tune this PID by changing the Kp, Ki, Kd, simulation time, or the desired set value.
The uniqueness of this code is that you can replace the two integrators with your model/system. You will find a note at that location in the code.
I used this code instead of Real Time Workshop (RTW) to simulate a system with a hardware-in-the-Loop (HIL), it worked just fine. You need to set your time properly so your system has enough of it to come to rest/settle.

引用

Mohammad Saadeh (2026). MATLAB based PID controller (https://jp.mathworks.com/matlabcentral/fileexchange/35163-matlab-based-pid-controller), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: AndyZelenak/three_simple_PIDs

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0