lsort.m
来自「TSTOOL应用软件,内有说明文件,可以适当修改,应用比较方便.」· M 代码 · 共 23 行
M
23 行
function status = lsort(handles)% tstool/lsort% sorts the entries in the listbox with handle handles.lboxhandle% and removes duplicate entriesif nargin < 1, help(mfilename), return, end lboxhandle = handles.lboxhandle;Value = get(lboxhandle, 'Value');String = get(lboxhandle, 'String');if ~isempty(String) [String, index] = cellsort(String); String = eliminatedupl(String); set(lboxhandle, 'String', String); set(lboxhandle, 'Value', 1); setcurrentfile(String{1}, handles.lboxhandle, handles.currfilehandle); status = 0; % OKelse status = 'no files to sort';end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?