📄 maketip.m
字号:
function T=maketip(x, y)%MAKETIP Make the tip matrix from a profile%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%A=1;B=length(x);C=find(y==min(min(y)));T=zeros(B);for col=A:C for row=A:B l=sqrt((C-col)^2 + (row-B/2)^2); if l < C-A T(row,col)=y(C-l); else T(row,col)=y(A); end endendfor col=C+1:B for row=A:B l=sqrt((C-col)^2 + (row-B/2)^2); if l < B-C T(row,col)=y(C+l); else T(row,col)=y(B); end endendreturn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -