|
Last change
on this file since 12878 was 33, checked in by seroussi, 17 years ago |
|
initial input
|
-
Property svn:executable
set to
*
|
|
File size:
306 bytes
|
| Line | |
|---|
| 1 | %
|
|---|
| 2 | % function to return an empty double array if all array elements are NaN
|
|---|
| 3 | %
|
|---|
| 4 | % function [dout]=allnan(din)
|
|---|
| 5 | %
|
|---|
| 6 | function [dout]=allnan(din)
|
|---|
| 7 |
|
|---|
| 8 | if ~nargin
|
|---|
| 9 | help allnan
|
|---|
| 10 | return
|
|---|
| 11 | end
|
|---|
| 12 |
|
|---|
| 13 | for i=1:numel(din)
|
|---|
| 14 | if ~isnan(din(i))
|
|---|
| 15 | dout=din;
|
|---|
| 16 | return
|
|---|
| 17 | end
|
|---|
| 18 | end
|
|---|
| 19 | dout=[];
|
|---|
| 20 |
|
|---|
| 21 | end
|
|---|
| 22 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.