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일

1 개 추천

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

JoshT_student
JoshT_student 2018년 7월 28일
Thank you for your time.
Star Strider
Star Strider 2018년 7월 28일
As always, my pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2018년 7월 28일

댓글:

2018년 7월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by