% read
a = dread('template.em');

% plot
dshow(a)

% save
ax = gca;
exportgraphics(ax,'average.tif','Resolution',300)