Quad function: Evaluate integral Problem

2 次查看(过去 30 天)
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

采纳的回答

Star Strider
Star Strider 2018-7-28
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by