이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
This function provides comparison operation improvement for floating point numbers.
Singleton expansion, multidimensional arrays supported.
example:
>> A = [ 1, 1, 1, 100, 1, 4];
>> B = [ 1, 1.2, 1.01, 101, 4, 1];
>> A<B
ans = 0 1 1 1 1 0
>> numcmp(A,B,1,1,@lt)
ans = 0 1 0 0 1 0
인용 양식
Jan Orwat (2026). Floating point relational operator. (https://kr.mathworks.com/matlabcentral/fileexchange/57457-floating-point-relational-operator), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 받은 파일: numcmp.m
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.2.0.0 | . |
||
| 1.1.0.0 | inf/nan errors solved. Please note that with numcmp infinities are not equal. inf == inf returns 1, while numcmp(inf,inf) returns 0. This is actually closer to reality:)
|
||
| 1.0.0.0 | Note, this function uses only absolute precision. |
