@LONG

Avoid NaNs, Infs.
1.7K Downloads
Updated 6 May 2003

No License

'Long' class is an user defined class designed to work with numbers in a much bigger domain.

- This class as been created to avoid the next problem (working with fuzzy systems): We have a set of small numbers (but non zero) Ei 0<i<M+1. Treated as zero by MATLAB
And other set of double classed numbers:yi. When you try to the following average:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---&nbsp;&nbsp;&nbsp;&nbsp;y&nbsp;&nbsp;·&nbsp;E
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;&nbsp;&nbsp;&nbsp;i
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_________
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i=1&nbsp;&nbsp;&nbsp;&nbsp;i

the result is NaN despite of being a good ranged double.

- With long objects this can be solved.

-Several methods are included, overloading some operators and common functions

Cite As

Ignacio del Valle Alles (2024). @LONG (https://www.mathworks.com/matlabcentral/fileexchange/3192-long), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fuzzy Logic Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

new category