function ch = digit_oct_to_ch ( i ) %% DIGIT_OCT_TO_CH returns the character representation of an octal digit. % % Modified: % % 11 June 2007 % % Author: % % John Burkardt % % Parameters: % % Input, integer I, the integer, between 0 and 7. % % Output, character CH, the octal representation of the integer. % if ( 0 <= i & i <= 7 ) ch = '0' + i; else ch = '?'; end