%
%
% Optical Imaging and Spectroscopy
%
% David J. Brady
% Duke University
% www.opticalimaging.org
%
% Figure 9.34
%
%
% STF of an undersampled spectrometer, useful for digital superresolution
%
u=linspace(0,1,512);
figure(1);set(gcf,'color','white');
subplot(2,1,1);plot(u,[otf(u);abs(sinc(u));abs(sinc(4*u))],'-k');xlabel('u (F/(\Lambda \lambda f/#))');title('(a)');
subplot(2,1,2);plot(u,otf(u).*abs(sinc(u)).*abs(sinc(4*u)),'-k');
xlabel('u (F/(\Lambda \lambda f/#))');title('(b)');
axis([0 1 0 1]);
hold on;
subplot(2,1,2);plot(u,10*otf(u).*abs(sinc(u)).*abs(sinc(4*u)),'--k');
hold off;
