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

📄 fsize.m

📁 控制系统计算机辅助设计——MATLAB语言与应用(源代码)
💻 M
字号:
function [m,n]=fsize(w,f)
%FSIZE  Size of MVFR matrix.
%       FSIZE(W,F) checks the MVFR matrix, F, for
%       consistency with the associated frequency vector W
%       and returns the size vector of the component matrices of F
%
%       [m,n]=FSIZE(W,F) returns the number of rows of the
%       component matrices in m and the number of columns in n.

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

[sz]=size(f);
lw=length(w);
if rem(sz(1),lw)~=0
 error('Length of freq. vector not consistent with rows of MVFR matrix')
end
sz(1)=fix(sz(1)/lw);
if nargout==2
  m=sz(1);
  n=sz(2);
else
  m=sz;
end  % if nargout

⌨️ 快捷键说明

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