clear; clc;

figure;
[x, y] = fplot(@(x) sin(1 / x), [0.02, 0.2])
plot(x, y, '.--');
figure;
plot(diff(x));