@LONG

Avoid NaNs, Infs.

You are now following this Submission

'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 (2026). @LONG (https://www.mathworks.com/matlabcentral/fileexchange/3192-long), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fuzzy Logic Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

new category