?? minus.m
字號(hào):
function y = minus(x,y)
% Subtraction 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;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -