plus.m
来自「计算动力学系统的分岔图」· M 代码 · 共 18 行
M
18 行
function y = plus(x,y)
% Addition of ADTAYL objects.
% Either of x or y can be numeric, and either can be scalar (1 by 1). If
% neither is scalar, they must have the same size.
% In effect, a numeric argument is converted to ADTAYL, and a scalar argument
% is "spread" to the size of the other.
x = adtayl(x);
y = adtayl(y);
if isscalar(x)
[m,n,p] = size(y.tc);
x.tc = repmat(x.tc,m,n);
elseif isscalar(y)
[m,n,p] = size(x.tc);
y.tc = repmat(y.tc,m,n);
end
y.tc = x.tc + y.tc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?