cellsort.m

来自「用于非线性时间序列分析的软件包。可用于计算:时间延迟重构」· M 代码 · 共 17 行

M
17
字号
function [result, index] = cellsort(x)% tstool/cellsort% sort an cell-array x of strings% result is an cell array containing the strings in ascending order% index contains the permutation orderif nargin < 1, help(mfilename), return, end if iscellstr(x)	temp = char(x); 	% convert cell-array to fixed-length array, each string in a row	[temp, index] = sortrows(temp);		result = cellstr(temp);	% convert array back to cell-arrayelse	error('Argument is not a cell array of strings');end

⌨️ 快捷键说明

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