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 | %
|
---|
6 | function [cout]=allempty(cin)
|
---|
7 |
|
---|
8 | if ~nargin
|
---|
9 | help allempty
|
---|
10 | return
|
---|
11 | end
|
---|
12 |
|
---|
13 | for j=1:numel(cin)
|
---|
14 | if ~isempty(cin{j})
|
---|
15 | cout=cin;
|
---|
16 | return
|
---|
17 | end
|
---|
18 | end
|
---|
19 | cout={};
|
---|
20 |
|
---|
21 | end
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.