strs2list.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 29 行
M
29 行
function[row]=strs2list(x)%STRS2LIST Converts a cell array of strings into a comma-delimited list.% _________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information% (C) 2003--2006 J.M. Lilly --- type 'help jlab_license' for details if ~iscell(x) xtemp=x; clear x x{1}=xtemp;end%x=packstrs(x); M=length(x);for i=1:M n(i)=length(x{i});endN=max(n);row=[];for i=1:M row=[row,x{i},',']; endrow=row(1:end-1);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?