MATLAB: I have a symbolic function, I want to know the points of discontinuity.

functionrootssymbolic

For example the function is :
syms t
k=t*heaviside(5-t)+5*heaviside(t-5) ;

Best Answer

so,
syms t
k = t*heaviside(5-t)+5*heaviside(t-5);
disc = feval(symengine, 'discont', k, t);