%% Convert Octal Value to Hexadecimal
% Create a character vector that represents an octal (base-8) value.

base8str = '377';

%
% You can represent this value as a hexadecimal (base-16) number using base2dec and dec2hex together. The output of dec2hex is a character vector.

D = base2dec(base8str,8)

%

hexStr = dec2hex(D)

% Copyright 2019 The MathWorks, Inc.