Parity

버전 1.0.0 (1.42 KB) 작성자: DJ Schott
Calculates the binary parity for an un-signed integer
다운로드 수: 17
업데이트 날짜: 2020/6/4

라이선스 보기

* calculates the binary parity for an un-signed integer
* based on the algorithm of Cedric Wannaz
(https://de.mathworks.com/matlabcentral/answers/65419-check-parity-of-a-uint32-without-converting-to-a-binary-string#answer_76952)
* modified on 2020-06-04 by D. J. Schott for University of Freiburg
* added modulo and input checking
* x: input is cast to uint64
* y: output is either 1(odd), 0(even)

인용 양식

DJ Schott (2024). Parity (https://www.mathworks.com/matlabcentral/fileexchange/76577-parity), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

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