How do i find the integral of a function
조회 수: 5 (최근 30일)
이전 댓글 표시
How do i find the integral of a function The function is X(t)=(a1+k1sinw1t)+(a2+k2sinw2t)+ 1/(2*pi*sd)*exp(-(t-mu).^2/(2*sd^2));within the limits 0 to 30 and plot it .
댓글 수: 0
채택된 답변
Are Mjaavatten
2017년 11월 14일
X = @(t) a1+k1*sin(w1*t)+(a2+k2*sin(w2*t)+ 1/(2*pi*sd)*exp(-(t-mu).^2/(2*sd^2));
t = linspace(0,30);plot(t,X(t))
plot(t,X(t))
s = integral(X,0,30)
추가 답변 (2개)
Niranjana Nair
2017년 11월 16일
편집: Walter Roberson
2017년 11월 17일
댓글 수: 1
Are Mjaavatten
2017년 11월 16일
I think you should submit this as a separate question, not as an answer to your previous question. Use a title that may trigger people who might understand your question. I have no knowledge of the kind of model you describe, so I am afraid i cannot help. Consider describing your problem in more detail.
참고 항목
카테고리
Help Center 및 File Exchange에서 Neural Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!