ISMEMBERF
by Bruno Luong
15 Mar 2009
(Updated 24 Oct 2010)
Floating-point ISMEMBER (i.e., with round-off tolerance)
|
Watch this File
|
| File Information |
| Description |
Matlab ISMEMBER uses strict exact comparison between floats.
The ISMEMBERF (note the "F") can tolerate some round off error.
It is possible to configure the tolerance.'rows' option is also supported.
Example:
[tf, loc]=ismember(0.3, 0:0.1:1) % returns false
[tf, loc]=ismemberf(0.3, 0:0.1:1) % return true |
| Acknowledgements |
This file inspired
Sound Transmission Class Stc.
|
| MATLAB release |
MATLAB 7.2 (R2006a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 16 Mar 2009 |
Extend ISMEMBERF to complex arrays |
| 19 Mar 2009 |
Important change in the engine when using 'rows' option, which saves the runtime by about 30%. Some adjustment with automatic tolerance. |
| 10 Oct 2009 |
Correct bug reported by David |
| 13 Oct 2009 |
Correct bug reported by Jan, better description in H1 line (thanks) |
| 23 Oct 2010 |
Complete H1 lines with specification of LOC and membership criteria |
| 24 Oct 2010 |
Replace soon-deprecated strmatch with strncmpi |
|
Contact us