MATLAB: How to determine the area limited by f(t)= exp(-0.01.​*t.^2).*co​s(2.*t) and g(t) =0.4 for t Ԑ [1, 3.5].

curves area

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)

Best Answer

integral( @(t) abs(f(t) - 0.4), 1, 3.5)
Related Question