info2label.m

来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 23 行

M
23
字号
function label=info2label(info)% Create label for axis annotation from two-element or three-element % cell array such as those found in structures for seismic data, well logs, % p.d.f.s, etc.% Written by: E. R.: June 23, 2003% Last updated:%% INPUT% info   2- or 3-element cell array% OUTPUT% label  string with label for plot annotationtext=info{end};units=info{end-1};label=text;if ~isempty(units)   if ~strcmpi(units,'n/a')      label=[text,' (',units2tex(units),')'];   endend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?