You have a variable t in your equation which is a vector. In order to multiply vectors in MATLAB you must use the syntax .*. In your case, the equation should be:
You should probably get in the habit of always using .* and .^ and ./ every time, until you finally encounter a situation where you need to use inner product * or matrix exponential ^ or least squared solutions to equations /
Best Answer