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

x = 1:50;
y = x.^2;
y(20) = NaN;
semilogy(x,y)

% Copyright 2020 The MathWorks, Inc.