⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list2strs.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[y]=list2strs(x)%LIST2STRS   Converts a comma-delimited list into a cell array of strings.%   _________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2002, 2004 J.M. Lilly --- type 'help jlab_license' for details        y=[];index=find(real(x)==real(','));if ~isempty(index)  a=[1 index+1];  b=[index-1 length(x)];  for i=1:length(a)    y{i}=deblank(x(a(i):b(i)));  endendy=packstrs(y);if 0    if ~isempty(index)        if index(end)==length(x)            index=index(1:end-1);            x=x(1:end-1);        end    end    if ~isempty(index)        if index(1)==1            index=index(2:end);        end    endend

⌨️ 快捷键说明

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