% ::::::::::::::::::::::::::::::::::::::::::::::::::::::: %
% Solution proposal to programming exercises week 7       %
%                                                         %
% INF2310, spring 2017                                    %
%                                                         %
% Ole-Johan Skrede, 18.02.2017                            %
% ::::::::::::::::::::::::::::::::::::::::::::::::::::::: %

function plot_image(im, name)

  im = scale_uint8(im, 0., 255.);

  figure
  image(round(im));
  colormap(gray(256));
  title(name)

end
