フィルターのクリア

how to develop simulink model using this code

1 回表示 (過去 30 日間)
nur
nur 2014 年 5 月 5 日
回答済み: Arkadiy Turevskiy 2014 年 5 月 5 日
i new in matlab.. my task to design a water level using PID controller and simulate using simulink.. this is my first try.. but i dont know how to use my coding with simulink..
clear all clc
syms s
%G=0.036/(36.942s^2+12.1568s+0.451)
num=0.036; den=sym2poly(36.942*s^2+12.1568*s+0.451);
G=tf(num,den);
H=1;
Kp=1; Ki=0; Kd=0;
C=pid(Kp,Ki,Kd);
T=feedback(C*G,H);
step(T)
  2 件のコメント
nur
nur 2014 年 5 月 5 日
after tune using pid tools.. i change it to kp=95 ki=3 kd=375
but i still dont know use simulink for this task..
Chandrasekhar
Chandrasekhar 2014 年 5 月 5 日
you can use control system tool box of simulink to construct the pid controller.

サインインしてコメントする。

採用された回答

Arkadiy Turevskiy
Arkadiy Turevskiy 2014 年 5 月 5 日
Take a look at a few "getting started" videos for Simulink - you can find them here .
Also, check out videos and examples on PID Control with MATLAB and Simulink page.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePID Controller Tuning についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by