How to integrate a symbolic vector?
이전 댓글 표시
If f=exp(t^2)*cos(t) then i can integrate 'f' using integral command (integral (f,0,1) ), but if 'F' is a vector (having elements similar to 'f' )then how can i integrate it? I am using same command but the answer is symbolic i.e still having 't'. I am not getting how to use trapz command. Your cooperation will be appreciated. Thanks in advance.
Kind Regards Bibigul
답변 (1개)
KSSV
2017년 9월 6일
0 개 추천
You should be having the values of t ..substitute those values in the integral expression using subs....convert the result into double using double and then call trapz .
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!