Code covered by the BSD License  

Highlights from
spec file reader

image thumbnail
from spec file reader by Zhang Jiang
Monitor, read, save scans from SPEC files and calculate true reflectivity.

invertxaxis(varargin)
function invertxaxis(varargin)
hLine = findall(gca,'Type','line');
if isempty(hLine)
    return;
end
for iLine = 1:length(hLine)
    set(hLine(iLine),'XData',-get(hLine(iLine),'XData'));
end

Contact us at files@mathworks.com