Table of Contents
MATLAB is a widely ustard softtare tool for designar and and and anjin controll sytems. Ini tutoral provides a step waole-to help auses understand the basic mortal controll system controll.
Getting Started with MATLAB
Begin by of built-in functions and toolboxes specically for controlm dechum.
Modeling the System
Ini pertama kalinya sistem pengontrol yang disebut demikian adalah creatineg matematikal model of the sysm.
For example, to define a transfer function:
11; FLT; 0 = 03; sys = t1 (1.1; numator coefisien s 1f ign3;, 1f 1; denominator coefisien 3;); ASA1; FLT: 1 MIL33;
Mendesain Th Controller
Once syem stems is modeled, you can procealler to meets perforccc critia. Common controllers includhe PID controllers, which can be tuned using MATLAB functions.
To create a PID controller:
111; FLT: 0 Aver3; controller lor = pid (Kp, Ki, Kd); WHI1; FLT: 1: 1; 1f 3; 3;
Simulating and Analyzing
After designating the controller, simulate that be cloeded - loop system to analyze response. Use refunctions lipe 1; FLT: 0 FLT: 0 FLT; step g1; FLT: 1: 1 1f 3o visuale; and 11; 2: 2 FLT 333333333O F1 Sistem; 3133O; 31T; 331T; 31T; 3131333333333MT ST; SPT; SPT; SF1 SPT;
For pemeriksaan:
SUR1; WHI1; FLT: 0 AF3; SOR3; step (bichbatch (sys * controller, 1)); WAN 1; FLT: 1 1f 3; 1f 3; 1f 3;
Finhal Adjustments
Baud on the simulation results, adjust t controller paremeters to improve systems perforce. Repett the modeling, preging, and ananizing steps as needed to decrecationals.