📄 sgray.m
字号:
function sgray(alpha)%SGRAY: Set a gray colormap %% sgray(alpha)%% IN: alpha: degree of clustering of B&W (try 5)%% SeismicLab% Version 1%% written by M.D.Sacchi, last modified December 10, 1998.% sacchi@phys.ualberta.ca%% Copyright (C) 1998 Seismic Processing and Imaging Group% Department of Physics% The University of Alberta%i0=32;i = 1:64;t = (atan((i-i0)/alpha))';s = t(64);t = (t - min(t))*1./(max(t) -min(t));m(1:64,2) = 1-t;m(:,1) = 1-t;m(:,3) =1-t;colormap(m);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -