%% Determine Whether Arrays Are Integer Type
% Determine if an array containing integer numbers is an integer type.
% Create an array using the int8 function. Check if it is an integer type.

A = [int8(1:5)]
TF = isinteger(A)

% Now, create a cell array that contains the array A and other integer numbers. Use class to identify the type of the cell array. Check if it is an integer type.

B = {A int8(-4); int8(2) int8(1)}
type = class(B)
TF = isinteger(B)

% The cell array is not an integer type since it is a cell type.
%
% Copyright 2018 The MathWorks, Inc.