packstrs.m
上传用户:syshixin
上传日期:2015-02-06
资源大小:2939k
文件大小:0k
源码类别:

matlab例程

开发平台:

Matlab

  1. function[x]=packstrs(x)
  2. %PACKSTRS Removes empty entries from a cell array of strings
  3. %   _________________________________________________________________
  4. %   This is part of JLAB --- type 'help jlab' for more information
  5. %   (C) 2002,2004 J.M. Lilly --- type 'help jlab_license' for details        
  6.   
  7. x=deblankstrs(x);
  8. n=lengthcells(x);
  9. index=find(n>=1);
  10. if ~isempty(x)
  11.   x=x(index);
  12. else 
  13.   x=[];
  14. end