How can I use Matlab for numerical integration?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 28K views
wildman
Messages
29
Reaction score
4
I figured it out. Thanks!
 
Last edited:
Physics news on Phys.org
i want to integrate a vector(which function is unknown) and plot the result.suppose a sin curve is given(but i dint know it).which integration will be cosine.so i want to see the exact plot.how can i do it?
 
tauhid035 said:
i want to integrate a vector(which function is unknown) and plot the result.suppose a sin curve is given(but i dint know it).which integration will be cosine.so i want to see the exact plot.how can i do it?

I've got the same question. Any help would be appreciated.
thanks
 
dunno if anyone is still looking at this thread but I found this site really helpful
http://www.tufts.edu/~rwhite07/Matlab.html"

the gradient and cumtrapz functions took care of it.
 
Last edited by a moderator: