How do I solve this integral numerically in MATLAB using Simpson's 3/8 rule?

  • Context: MATLAB 
  • Thread starter Thread starter arslan894
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
arslan894
Messages
9
Reaction score
0
i am making a MATLAB model of cam follower interaction for measureing friction but need help with this integral
f(x) = ∫e^(1-(x^2)/(b^2))dx the limits are -b to b , take the value of b = 3
when i used the ( int )function in MATLAB it tells that the explicit answer doesn't exist ,so how to solve this in MATLAB ?
i used simpsons 3 8 rule to find the answer on paper but how to find it in MATLAB ?
 
Physics news on Phys.org
Last edited by a moderator: