Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Re: Create Vector of Vectors that is sorted?

$
0
0

Thank you Richard, currently the Centroid function excludes the outer values in xx. In this example it calculates the centroid between x-values 1 and 4, 4 and 8, 8 and 11. Is it possible to modify it such that it also calculates the centroid between 0 and 1, 8 and 11 (or any future extreme values)? I’ve tried changing the values of i but am only able to capture one of the two extremes. As you can see in the attached, trying to capture both cause the Centroid function to error.

 

Additionally, is it possible to create a function that uses each successive set of two values from vector xx as bounds of integrations, for example and integral from 0 to 1, 1 to 4, etc.


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>