%% Convert Multivalued Logic Vectors to Decimal Integers
% Find the decimal integer equivalent for multivalued logic vector.

mvl2dec('010111')

%
% Find the decimal integer equivalent for multivalued logic vector with one or more values other than 0 and 1. The function returns NaN.

mvl2dec('x01201')

%
% Find the decimal integer equivalent for signed multivalued logic vector. The second input argument indicates that the input is a signed vector.

mvl2dec('10111',true)

% Copyright 2012 The MathWorks, Inc.