Do not try to use logical masking with symbolic expressions. t>=-1 evaluates (at best) to TRUE or FALSE, not to 0 or 1. Use piecewise() instead.
By the way, the integral is 0.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!