The following code is incredibly useful when creating MATLAB plots as it adds the filename of the script to the plot itself. I think it should be used for all MATLAB plots that go on the elog.
For example, I have no idea where the data/script is that was used to generate these plots.
orient landscape
xposn = 0.0;
yposn = -0.13; % you sometimes have to tweak this value depending on the page size and the number of subplots
text(xposn,yposn,[filename('fullpath'), '.m'], ...
'Units', 'normalized', ...
'Interpreter', 'none', ...
'FontSize', 6)
print('-dpdf', [filename('fullpath'), '.pdf'])
|