Skip to content

Instantly share code, notes, and snippets.

@konfou
Last active October 25, 2017 11:15
Show Gist options
  • Save konfou/f9a73dab0e617c9e9b567d40ca53da6e to your computer and use it in GitHub Desktop.
Save konfou/f9a73dab0e617c9e9b567d40ca53da6e to your computer and use it in GitHub Desktop.
display an ASCII chart (Octave)
chr = char(32:127)(:);
spc = ' ' * ones(length(chr), 1);
nms = num2str([32:127](:));
tab = [nms spc chr spc];
qti = reshape(tab',length(tab)/2,[])';
disp(qti)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment