How can I use Matlab for numerical integration?

Click For Summary

Discussion Overview

The discussion revolves around using Matlab for numerical integration, specifically focusing on integrating an unknown function represented by a vector and plotting the results. Participants express interest in understanding how to achieve this integration and visualization in Matlab.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses a need to integrate a vector with an unknown function and plot the result, using a sine curve as an example, but is unsure how to proceed.
  • Another participant echoes the same question, seeking assistance on the integration and plotting process in Matlab.
  • A later reply mentions finding a helpful website and suggests that the gradient and cumtrapz functions in Matlab can be useful for the integration task.

Areas of Agreement / Disagreement

Participants generally express similar questions and needs regarding the integration process, but no consensus or definitive solutions are reached in the discussion.

Contextual Notes

The discussion does not clarify specific assumptions or dependencies on definitions related to the integration process, nor does it resolve the mathematical steps involved in the integration of the unknown function.

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:

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
Replies
3
Views
3K
Replies
27
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K