📄 setcorners.m
字号:
function F=setcorners(F)
%SETCORNERS Function used by plot.
% Function to make command slice work correctly.
% Copyright (c) 2001-04-22, B. Rasmus Anthin
[Ny Nx Nz]=size(F);
eps=realmin*100;
if ~F(1,1,1)
F(1,1,1)=-eps;
else
F(1,1,1)=F(1,1,1)*(1-1e-5);
end
if Nz>0
if ~F(1,1,2)
F(1,1,2)=eps;
else
F(1,1,2)=F(1,1,2)*(1+1e-5);
end
elseif Nx>0
if ~F(1,2,1)
F(1,2,1)=eps;
else
F(1,2,1)=F(1,2,1)*(1+1e-5);
end
elseif Ny>0
if ~F(2,1,1)
F(2,1,1)=eps;
else
F(2,1,1)=F(2,1,1)*(1+1e-5);
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -