% Plot sin(x)/x for x = -4*pi to 4*pi. x = linspace(-4*pi, 4*pi, 1000); y = sin(x) ./ x; plot(x, y); % will skip NaN points