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