compensator_design
Version 2.0.0 (2.61 KB) by
Amaldev Haridevan
Design a Lead or Lag compensator for open loop system.
%% returns the control parameters of compensator design (lead or lag)
%input parameters ([required] and [optional]):
% @comp_type: type of compensator (available types are lead and lag)
% [required]
% @PM: The desired phase margin (should include the extra margin as desired
% 5 ~ 15 )[required]
% @sys: the transfer function object representing uncompensated open-loop
% system [required]
% @type: type of the open-loop system in terms of tracking for a polynomial
% input [required]
% @ess: the required ess [optional] [default: 0.1]
% @T_factor: The factor by which the T value for lag compensator is
% multiplied, the factor is typically 2 to 10 (one octave to one decade)
% [optional] [default: 5]
%% specify parameters example:
% compensator_design("comp_type", "lead", "PM", 40, "sys", sys )
%%
Cite As
Amaldev Haridevan (2026). compensator_design (https://uk.mathworks.com/matlabcentral/fileexchange/103735-compensator_design), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
