% matlab script to solve non-smooth problem

clear all, close all

global tau

t0 = 0;
tau = 0.2;
tf = 2*tau;
y0 = 0;

[t,y] = ode45('fNonSmooth',[t0,tf],y0);

plot(t,y)