%% Determine If Variable Type Belongs To Specified Categories
% Create an array whose data type is uint8. Determine if the array has a data type that belongs to the integer category.

A = uint8([0 2 4 6 8])

%

tf = isa(A,'integer')

%
% Determine if the data type of A belongs to the float category.

tf = isa(A,'float')

% Copyright 2018 The MathWorks, Inc.