numcmp.m

Compares between numerical arrays up to a certain precision.

Ahora está siguiendo esta publicación

Nota del editor: This file was selected as MATLAB Central Pick of the Week

This program compares numerical arrays up to a certain precision.
Examples:
>> numcmp(x); % compares x==0.1
>> numcmp(x,'<=',y,3); % compares x<=y up to 0.001

See the screenshot for another example.

This is usefull to compare serial dates up to 0.1 seconds by using:
>> numcmp(time1*86400,FUN,time2*86400)
and avoiding floating point problems with the serial dates in days.

Citar como

Carlos Adrian Vargas Aguilera (2026). numcmp.m (https://la.mathworks.com/matlabcentral/fileexchange/21190-numcmp-m), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspiración para: Floating point relational operator.

Categorías

Más información sobre Dates and Time en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0

BSD License
Fixed bug with Infs inputs