sat.m

来自「包含了控制理论的各种仿真程序」· M 代码 · 共 13 行

M
13
字号
%  Function sat      Feedback Control of Dynamic Systems, 4e
%                        Franklin, Powell, Emami
%
function y=sat(x);
% sat is the saturation function with unit limits and unit slope.
if x>1
y=1;
elseif x<-1 
y=-1;
else 
y=x;
end

⌨️ 快捷键说明

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