Intergation problem
이전 댓글 표시
I am trying to solve the intergal of e^(-1/x)and plot it.
The entire function is as shown below,
Thanks in Anticipation
Shashi
답변 (1개)
Andrei Bobrov
2011년 10월 8일
C = 1;
a = 0;
b = 1;
quad(@(x)exp(-C./x),a,b)
about plot
fun = @(x)arrayfun(@(x)quad(@(x)exp(-C./x),0,x),x);
plot(0:.1:20,fun(0:.1:20))
댓글 수: 2
Shashishekar
2011년 10월 8일
Andrei Bobrov
2011년 10월 8일
funcos = @(x)arrayfun(@(x)quad(@(x)sin(x+pi),pi/2,x),x);
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!