%% Determine Whether Arrays Are Numeric Type
% Determine if an array containing floating-point numbers is a numeric type.

A = [-3.5e2 2.5; single(3) pi]
TF = isnumeric(A)

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

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

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