MATLAB Integrating Expressions in MATLAB: Need Help!

AI Thread Summary
The discussion centers on difficulties in computing an integral in MATLAB. The user has attempted to use the quad and Romberg methods but has not achieved the correct results. They mention having created and tested a function successfully for specific values but struggle with the integration process. A suggestion is made that the ode23 function might be useful, though the user is unsure how to implement it. Additionally, it's noted that the quad function is obsolete and that the integral function should be used instead for better results. However, further assistance is contingent on knowing the specific expression involved in the integration.
p3dro0
Messages
1
Reaction score
0
hell, i have been trying to compute the integral of an expression in matlab, but when it comes to the integration part i can't get the right result. i tried the quad function, and one named romberg i found online. I have been told the ode23 function could work, but i can't figure out how to use it.

I've already created the function in MATLAB and tested it for some values, and they are correct, but when it comes to the integration part i can't get it right.

does anyone have some ideas on what can i do?

thanks
 
Physics news on Phys.org

Similar threads

Back
Top