채택된 답변

madhan ravi
madhan ravi 2018년 12월 14일
편집: madhan ravi 2018년 12월 14일

0 개 추천

If you want specific help post what you tried:
fun = @(theta).... your function without integral
integral(fun,0,pi/2)

댓글 수: 6

clear marklina
clear marklina 2018년 12월 14일
thanks mr madhan for your answer and how can i plot it ?
Clear Marklina's answer moved here for consistency:
i'm trying this,but it doesn't give the result :
f=@(theta)((cos(pi/2*cos(theta))^(2))/sin(theta));
integral(f,0,pi/2)
Try this:
f=@(theta)((cos((pi./2).*cos(theta)).^(2))./sin(theta));
integral(f,0,pi/2)
clear marklina
clear marklina 2018년 12월 14일
편집: clear marklina 2018년 12월 14일
thank you mr madhan, it works and give sto me ans=0.6094, , can you help me how can i plot this integral !
madhan ravi
madhan ravi 2018년 12월 14일
use cumtrapz() but I did all the experiments I could but breaking this problem was hectic for me...

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

추가 답변 (0개)

태그

질문:

2018년 12월 14일

댓글:

2018년 12월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by