packstrs.m
资源名称:jlab.rar [点击查看]
上传用户:syshixin
上传日期:2015-02-06
资源大小:2939k
文件大小:0k
源码类别:
matlab例程
开发平台:
Matlab
- function[x]=packstrs(x)
- %PACKSTRS Removes empty entries from 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
- x=deblankstrs(x);
- n=lengthcells(x);
- index=find(n>=1);
- if ~isempty(x)
- x=x(index);
- else
- x=[];
- end
English
