Re: Is NaN?
- From: us <us@xxxxxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 09:25:35 -0500
Shapper:
<SNIP us's function is NOT working...
> this is not working. I get the message "??? Function name must be a
string...
you're absolutely right - i was too quick in showing
<cellfun>'s added functionality (great stuff, TMW!)
c={'aa',pi,[nan;pi;nan],1:5,nan};
% now, there are two possibilities
% a) a LOCAL solution
r=cellfun(@(x) x(:)~=x(:),c,'uniformoutput',false);
r{:}
% b) a GLOBAL solution
r=cellfun(@(x) any(x(:)~=x(:)),c)
sorry for confusion!
us
.
- Prev by Date: Re: Is NaN?
- Next by Date: How to write this matrix??
- Previous by thread: Re: Is NaN?
- Next by thread: How to write this matrix??
- Index(es):