how to write this integration please

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 comentarios

madhan ravi
madhan ravi el 19 de Oct. de 2018
Just try what you know and paste the code here to debug, seems to be an easy task.
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD el 19 de Oct. de 2018
Editada: MAHMOUD ALZIOUD el 19 de Oct. de 2018
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

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 19 de Oct. de 2018
Editada: madhan ravi el 19 de Oct. de 2018
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 comentarios

MAHMOUD ALZIOUD
MAHMOUD ALZIOUD el 19 de Oct. de 2018
it worked thank you, but the output is like a very ling line, how can i get the single value of this integration?
madhan ravi
madhan ravi el 19 de Oct. de 2018
Editada: madhan ravi el 19 de Oct. de 2018
Check edited code
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD el 19 de Oct. de 2018

THANK YOU VERY MUCH; AMAZING

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Oct. de 2018

Comentada:

el 19 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by