%% Return Numeric Array
% Create a string array that represents multiple binary values.

binStr = ["1111111111" "1111010" "1110"]

%
% Convert the binary values and return a numeric array.

D = bin2dec(binStr)

%
% Starting in R2019b, it is recommended that you create a numeric array using binary literals instead of converting text with bin2dec.

D = [0b1111111111 0b1111010 0b1110]

% Copyright 2019 The MathWorks, Inc.