📄 strim.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -