How to shift this function's broken points

Status
Not open for further replies.

neoflash

Advanced Member level 1
Joined
Jul 2, 2005
Messages
492
Helped
10
Reputation
20
Reaction score
2
Trophy points
1,298
Activity points
4,759
I have a function in mathcad which will have multiple broken points.

I need to shift the curve to make them continuous again. For example, the shown graph will need 2nd segment by 1x, the 3rd segment by 2x and so on.

However, I don't know how to do it in Mathcad. If any one can help, that will be great. Because Mathcad is still kind of more visualized than Matlab so that I can do it in a more intuitive way in Mathcad.




Thanks,
Neo
 

Attachments

  • mathcad_question.PNG
    9.8 KB · Views: 111

Neo - do you mean this in the same context as, say, phase unwrapping?

If so, one performs a recursive solution:
U[0]=V[0]
for i E 1..N
delta = V - V[i-1]
delta = delta+1 if (delta < -0.5)
delta = delta-1 if (delta >= 0.5)
U = U[i-1]+delta

or something akin to that - brute-force summation of unwrapped differences

Let us know if this is what you had in mind
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…