tau = 0.1; 
f = @(t,x)([- x/tau]); 
x0=1; 
[t,x]=ode45(f,[0 100],x0);
figure; plot(t,x)