⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fcsod.m

📁 MFD-多变量系统频域设计工具
💻 M
字号:
function s=fcsod(w,f)
%FCSOD  Column sum of abs(off-diagonals) of MVFR matrix.
%       FCSOD(W,F) returns the column sum of the absolute
%       values of off diagonals of the component matrices of
%       the MVFR matrix, F, one row per component matrix.
%       W is the associated frequency vector.
%       See also FRSOD,FCDOM,FRDOM

%       Dr M.P. Ford 4th August 1987
% Copyright (c) 1987 by GEC Engineering Research Centre & Cambridge Control Ltd


[m,n]=fsize(w,f);
lw=length(w);
if m~=n
  error('Not a square system');
end
s=ones(lw,n)*inf;   % Set up output matrix
k=1:m;              % vector of rows of each matrix in F
for i=1:lw          % for each frequency
  fm=abs(f(k+(i-1)*m,:));
  s(i,:)=sum(fm)-diag(fm)';
end % for i=1:lw

⌨️ 快捷键说明

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