strim.m

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

M
17
字号
function s = strim(ss)
% Function removes trailing and leading blanks of a string.
% 
%        s=strim(ss)
% INPUT
% ss     strings whose leading and trailing blanks need to be removed
% OUTPUT
% s      string without leading and trailing blanks

global S4M

if S4M.matlab_version < 7
   s=fliplr(deblank(fliplr(deblank(ss))));
else
   s=strtrim(ss);
end

⌨️ 快捷键说明

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