%% Plot Positive Part of Simple Function
% Compute the positive part of integers in the range from -2 to 2 by using the subplus function.

x = -2:2;
xp = subplus(x);

% Plot the subplus function on the interval from -2 to 2.

plot(x,xp)
ylim([-0.5 2.5])

% Copyright 2020 The MathWorks, Inc.