필터 지우기
필터 지우기

how to write this integration please

조회 수: 1 (최근 30일)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018년 10월 19일
댓글: MAHMOUD ALZIOUD 2018년 10월 19일
Dear All, I attached an image with a formula that I need to write in matlab but I do not know the right syntax, x ranges from zero to infinity, how can I write this integration please?
  댓글 수: 2
madhan ravi
madhan ravi 2018년 10월 19일
Just try what you know and paste the code here to debug, seems to be an easy task.
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018년 10월 19일
편집: MAHMOUD ALZIOUD 2018년 10월 19일
i tried this but it is no working!
x=(0:100); %this is an example
fun=(0.00001*x.^4-0.0003*x.^3+0.0093*x.^2-0.0843*x+0.1721)*(0.154*exp.(0.089*((x-9.911).^2))); %the first part of the integration
q = integral(fun,2,50) % a required zone

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 10월 19일
편집: madhan ravi 2018년 10월 19일
syms x %requires symbolic toolbox
fun=(0.00001*x.^4-0.0003*x.^3+0.0093*x.^2-0.0843*x+0.1721)*(0.154*exp(0.089*((x-9.911).^2)));
int(fun,x,2,50) %erfi constant arises because of exponential function
double(int(fun,x,2,50))
  댓글 수: 3
madhan ravi
madhan ravi 2018년 10월 19일
편집: madhan ravi 2018년 10월 19일
Check edited code
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018년 10월 19일

THANK YOU VERY MUCH; AMAZING

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by