Because of other operations done before both f(t) and g(t) is used with handles(@) in my code. Tried other methods that are on this forum but cant get them to work due to the two curves doesn't intersect.
f = @ (t) exp(-0.01.*t.^2).*cos(2.*t)
curves area
Best Answer