Quad function: Evaluate integral Problem

Hello, I am trying to evaluate this integral I attached. I made the function and I put the code in the editor to run it. But for some reason I keep getting an error with the function I made. The error is at my expression that I made for some reason. Please help.
Thank you

 Accepted Answer

You need to do element-wise exponentiation (as well as division, that you already included) in the evaluation of ‘myfunb’:
y = sin(x)./sqrt(1-4*sin(x).^2);

2 Comments

Thank you for your time.
As always, my pleasure.

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!