?? mpower.m
字號:
function ans = mpower(x,y)
% X^Y for adtayl objects.
[m,n,p1] = size(x.tc);
if (fix(y)==y)
ans=powerin(x,y); % ans=mpowerin(x,y);
elseif (x.tc(:,1)==0) && (p1-1<y)
for i=1:p1
x.tc(:,:,i)=0;
end
ans=x;
elseif (x.tc(:,1)==0) && (p1-1>y)
error('X^Y for adtayl objects is not defined');
else
[m,n,p1] = size(x.tc);
y1=y*log(x);
ans=exp(y1);
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -