sgray.m
来自「著名的seismiclab的代码 是地震学研究人员必备的工具」· M 代码 · 共 32 行
M
32 行
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 + =
减小字号Ctrl + -
显示快捷键?