frequency relay function for Zeigler nichols 2?

Hi,
I have to write matlab code/function for Zeigler Nichols 2(Closed Loop).
I wrote the code for solve of pid parameters, but I have problems in simulation of Closed Loop.
I understand that I need of relay, but as function or command I could not found.
----r-->+---e-|relay|--|PID|--u-|PLANT|-----------y->
^- |
|__________________________________|

Answers (3)

If there isn't function/command for this,
Pls you give me some information on how I can write code.

Asked:

on 28 Apr 2013

Community Treasure Hunt

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

Start Hunting!