Iseven/Isodd

Version 1.0.0.0 (1,65 ko) par Dan K
Simple helper files that return true/false based on whether inputs are even or odd, respectively
721 téléchargements
Mise à jour 16 fév. 2012

Afficher la licence

% 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

Citation pour cette source

Dan K (2024). Iseven/Isodd (https://www.mathworks.com/matlabcentral/fileexchange/35105-iseven-isodd), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2011b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Genomics and Next Generation Sequencing dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0