Functions handle (product of functions)
조회 수: 5 (최근 30일)
이전 댓글 표시
Dear all, I have the following functions:
X=@(fi) 2*sqrt(5/8)*atan(sqrt(45)*fi.); h=@(fi) 10*fi.^2;
However, I need to calculate the follow function:
f=X*h area= quad(f,0,10)
Can anyone help me? Thanks a lot. Marcus Vinicius
댓글 수: 2
Youssef Khmou
2013년 3월 20일
i am not sure if we can define function based on functions but as alternative solution take a look at the solution below
채택된 답변
Youssef Khmou
2013년 3월 20일
hi,
why dont you use one single function handle :
>>G=@(fi) 2*sqrt(5/8)*atan(sqrt(45).*fi)*10.*(fi.^2) % This is X*H
>>I=quad(G,0,10)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Monte-Carlo에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!