Iseven/Isodd

버전 1.0.0.0 (1.65 KB) 작성자: Dan K
Simple helper files that return true/false based on whether inputs are even or odd, respectively
다운로드 수: 722
업데이트 날짜: 2012/2/16

라이선스 보기

% iseven - Returns true if the input is an even whole number
% Syntax: tf = iseven(x)
% x - numeric (real) input of any number of dimensions and sizes
% tf - true for each element that is an even whole number
% Example
% tf = iseven([1,3,4]);
%
% See also: isodd

% isodd - Returns true if the input is an odd integer
% Syntax: tf = isodd(x)
% x - numeric (real) input of any number of dimensions and sizes
% tf - true for each element that is an odd integer
% Example
% tf = isodd([1,3,4]);
%
% See also: iseven

인용 양식

Dan K (2024). Iseven/Isodd (https://www.mathworks.com/matlabcentral/fileexchange/35105-iseven-isodd), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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