tag:blogger.com,1999:blog-13710336.post9213859837512621819..comments2022-09-18T11:14:36.876-04:00Comments on Neurochannels: Matlab question marks and exclamation pointsEric Thomsonhttp://www.blogger.com/profile/06847717704454032165noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-13710336.post-56570743190769524962013-08-05T15:32:10.805-04:002013-08-05T15:32:10.805-04:00Dan: nice trick with ismember, I didn't know t...Dan: nice trick with ismember, I didn't know that could work.<br /><br />In terms of my question about why NaN==NaN doesn't yield a 1, I know about those other functions, my question was more general...I would expect it to yield the same answer as Inf==Inf (which gives a '1'). I wouldn't even mind if it evaluated to NaN...But to 0? Seems like an odd convention, thought there Eric Thomsonhttps://www.blogger.com/profile/06847717704454032165noreply@blogger.comtag:blogger.com,1999:blog-13710336.post-84602196905690228122013-08-05T14:52:32.097-04:002013-08-05T14:52:32.097-04:00for 7/9/12
1.
>>out = ismember(cell_array,&...for 7/9/12<br /><br />1.<br />>>out = ismember(cell_array,'string')<br />works well to do the same thing. The second argument can even be a cell array of strings<br /><br />2.<br />try: isnan() or isequaln()<br />Danhttps://www.blogger.com/profile/14808186902856034588noreply@blogger.com