% afm_step.m
% Step responses of Georgs AFM
%   kja071116
% Oscilloscope data
% First, third, fifth, and seventh column: time s
% Second column: the input step applied to the power amplifier 80 mV
% Fourth column: output of the power amplifier 1.2 V
% Sixth column: deflection signal 720 mV corresponding to 34 nm
% Eight column: filtered deflection signal from Veeco system

%aminit;
sf=34/720;
load afm_step_data;
subplot(111)
pl=plot(1e6*data(:,1),34*data(:,6)/0.720);
set(gca,'Ytick',[0 10 20 30 40]);
set(pl,'Linewidth',AM_data_linewidth);
axis([-30 230 -3 42]);
xlabel('Time [ms]')
ylabel('Elongation z [nm]')
