compensator_design

Design a Lead or Lag compensator for open loop system.

You are now following this Submission

%% 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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0

Updated so that the calculations are more precise (using symbolic variables)

1.0.0