% 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 リリースの互換性
プラットフォームの互換性
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.0 |