Jump to content
Sign in to follow this  
Guest

Is there a function to get the curve index of the last point of a curve?

Recommended Posts

Guest

I want to use some templex functions for notes and text boxes that extract values from curves, such as the peak value and final value. For the peak, I can use the indexofmax(curve.id) function. Is there a similar one to get the final point? I wasn't able to find a similar command in the help.

Share this post


Link to post
Share on other sites
Guest

I have not try it but how about using the next templatex function:

{max(p1w1c1.x)}

p1 = page 1

w1 = window1

c1 = curve 1

this should give the max value in the X axis.

Share this post


Link to post
Share on other sites
Guest

The {max(p1w1c1.x)} function will give the maximum value of the x curve, but not the index number. However, I realized that I could just use the indexofmax(p1w1c1.x) rather than .y to get the index of the largest X value, rather than for the peak Y value.

Thanks for idea though Cesar - it did get me to the right answer.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...