cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Segmented Function

KarlFleischer
4-Participant

Segmented Function

Is it possible to define a single function (for example a cam) in segments and then show it in one continuous graph? See the attached example. The reason that I would like to do this as a function rather than an array is that I wish to subsequently repeatedly differentiate it to get from displacement to velocity, acceleration and jerk. Thanks, Karl.

ACCEPTED SOLUTION

Accepted Solutions

you're missing two pieces, look for the yellow highlight.

View solution in original post

4 REPLIES 4

you're missing two pieces, look for the yellow highlight.

Perfect.Many Thanks, Fred.

One additional remark, as you are wondering why you don't see a horizontal line at 1.9375 in Segment 5.

You had defined the range theta for the abscissa as 166.5 .. 167.0

If you don't provide a second value, the default step width is 1 and so next value would be 167.5 and is greater than the end value 167. So your "range" consists of one single value (166.5) only. Therefore the plot is a single point at (165.5 // 1.9375). If you look closely (or set the line width at a higher value) you should be able to see that point.

Makes sense. Thanks for clearing that up, Werner. Karl.
Announcements

Top Tags