📄 tan.m
字号:
function x = tan(x)
% Tan for adtayl objects.
if ~isreal(x.tc)
error('Tan, Cotan 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= sin(x1)/cos(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 + -