numcmp.m

Compares between numerical arrays up to a certain precision.
ダウンロード: 2K
更新 2016/5/4

ライセンスの表示

編集メモ: 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.

引用

Carlos Adrian Vargas Aguilera (2026). numcmp.m (https://jp.mathworks.com/matlabcentral/fileexchange/21190-numcmp-m), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDates and Time についてさらに検索
謝辞

ヒントを与えたファイル: Floating point relational operator.

バージョン 公開済み リリース ノート
1.0.0.0

BSD License
Fixed bug with Infs inputs