%% Plot Discontinuous Function
% Insert NaN values wherever there are discontinuities in your data. The semilogx function displays gaps at those locations.
% Create a pair of x- and y-coordinate vectors. Replace the fortieth y-coordinate with a NaN value. Then create a linear-log plot of x and y.

x = logspace(-1,2);
y = x;
y(40) = NaN;
semilogx(x,y)

% Copyright 2020 The MathWorks, Inc.