%% Convert to Integer
% Convert a character vector to an unsigned 16-bit integer using str2num and uint16.

X = str2num('256');
X = uint16(X)

% Copyright 2012 The MathWorks, Inc.