source: issm/trunk-jpl/src/m/utils/Array/allempty.m@ 10937

Last change on this file since 10937 was 33, checked in by seroussi, 16 years ago

initial input

  • Property svn:executable set to *
File size: 314 bytes
Line 
1%
2% function to return an empty cell array if all array elements are empty
3%
4% function [cout]=allempty(cin)
5%
6function [cout]=allempty(cin)
7
8if ~nargin
9 help allempty
10 return
11end
12
13for j=1:numel(cin)
14 if ~isempty(cin{j})
15 cout=cin;
16 return
17 end
18end
19cout={};
20
21end
22
Note: See TracBrowser for help on using the repository browser.