⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_pid_control.m

📁 This is PID control algortihms in Matlab/Simulink.
💻 M
字号:
% Control of a water tank temperature
% Case of Proportional-Integral-Derivative Control
% Author's Data: Housam BINOUS
% Department of Chemical Engineering
% National Institute of Applied Sciences and Technology
% Tunis, TUNISIA
% Email: binoushousam@yahoo.com 

% Main program calls function PID_control 
% and plot results: sensor and tank temperatures and heat input to the water tank

tf = 150;

x0=[20 2500 20 0];

[t,x] = ode15s('PID_control',[0 tf],x0);

x1=x(:,1);
x2=x(:,2);
x3=x(:,3);

figure(1);
hold on
plot(t,x1,'r');
plot(t,x3,'b');
hold off

figure(2);
hold on;
plot(t,x2,'c');
hold off;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -