Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Dear experts,
I have a dataset, and I need to calculate the areas of four regions within this dataset, as shown in the image.
I would like to use Mathcad's integration function to perform this calculation. How can I apply the integration function to the imported dataset in Mathcad?
Solved! Go to Solution.
I suppose you know, or at least have a way to determine, the range of index for each if the four regions. Then simply sum the numbers over the index range.
If you have a model that predicts the shape of the y values you could try a curve fit of the data with that model, and then use integration over your model function.
Success!
Luc
I know the range over which I want to integrate, but I am unsure how to express the imported dataset as a function in Mathcad for integration. How can I define a function based on the imported data and then perform the integration?
Your solution is very clear to me, thanks.
To be able to use Mathcad's numerical integration you have to turn your data into a function.
The easiest way (and I guess its as good as any as long as you don't know which function type to fit) is using linear interpolation:
Another way is to determine the position of the data in the matrix Po (the indices which relate to the desired limits of the integral) and use the trapezoid rule to calculate the integral.
MC15 sheet attached
Thanks.
I know how to do it!