Vectorized Safe Reciprocal

버전 1.0.0.0 (4.34 KB) 작성자: Marc Compere
Accepts an input array and returns reciprocals of individual elements without divide-by-zero errors.
다운로드 수: 1.5K
업데이트 날짜: 2002/9/5

라이선스 없음

This block accepts an array of inputs and, depending on the individual elements, will return an array of reciprocals of the input.

If an input element is zero, the corresponding output element is assigned a very large number equal to 1/epsilon_machine on most 32-bit computers (epsilon_machine ~= 2.22044604925031e-016)

If the numebr is not zero, it returns the reciprocal of that number in the appropriate output element.

This function will give you the reciprocal of an array without producing divide-by-zero errors.

인용 양식

Marc Compere (2025). Vectorized Safe Reciprocal (https://www.mathworks.com/matlabcentral/fileexchange/2330-vectorized-safe-reciprocal), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Biomedical Imaging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0