faddf.m
来自「包含大量遗传算法程序」· M 代码 · 共 19 行
M
19 行
function fout=faddf(w,f1,f2)
%FADDF Add two MVFR matrices
% FADDF(W,F1,F2) adds F1 and F2
% F1 and F2 are both MVFR matrices
% and W the associated frequency vector.
% See also FADD,FNUL,FMULF
% Dr M.P. Ford 4th August 1987
% Copyright (c) 1987 by GEC Engineering Research Centre & Cambridge Control Ltd
[m1,n1]=fsize(w,f1);
[m2,n2]=fsize(w,f2);
if (m1~=m2)|(n1~=n2)
error('Component matrices not the same size')
end
fout=f1+f2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?