I want to integrate this function
조회 수: 2 (최근 30일)
이전 댓글 표시
x=0:50;
y=exp(-x./25).*sqrt((25+x)/(25-x));
int(y,x,0,50)
i want to integrate this function
댓글 수: 0
채택된 답변
Star Strider
2022년 3월 20일
x = 0:50;
y = @(x) exp(-x./25).*sqrt((25+x)/(25-x));
int_y = integral(y,0,50)
x = 0:50;
y = @(x) exp(-x./25).*sqrt((25+x)/(25-x));
int_y = cumtrapz(x,y(x));
figure
plot(x, real(int_y), x,imag(int_y))
grid
legend('Real','Imaginary', 'Location', 'best')
.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!