?? coth.m
字號:
function x = coth(x)
% Cothx for adtayl objects.
if ~isreal(x.tc)
error('X for adtayl objects must not have imaginary part')
end
[m,n,p] = size(x.tc);
for i=1:m*n
x1.tc= reshape(x.tc(i,:),[1, 1,p]);
x1=class(struct('tc',x1.tc),'adtayl');
y= (exp(x1)+exp(-x1))/(exp(x1)-exp(-x1));
xx1.tc(i,:)=y.tc;
end
x.tc = reshape(xx1.tc, m,n,p);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -