%% Evaluate Heaviside Function for Symbolic Matrix
% Evaluate the Heaviside function for a symbolic matrix. When the input argument is a matrix, heaviside computes the Heaviside function for each element.

syms x
H = heaviside(sym([-1 0; 1/2 x]))

%
% Copyright 2006-2019 The MathWorks, Inc.