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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Plot line has missing segments

LH_13783026
2-Explorer

Plot line has missing segments

Hi all, 

 

I have an issue with plotting a function on Mathcad Prime 11. For some reason there are missing segments in the plots of my shear-force diagrams. I'm not sure why this is happening, other plots I have made seem to work fine - any guidance would be much appreciated. 

 

The plots and respective functions are on pages 9 and 17 of the attached document. Thanks in advance

 

LH_13783026_0-1752149373039.png

 

ACCEPTED SOLUTION

Accepted Solutions

Hi,

Include the two points of legs in the vector of x2.  In the following worksheet have done this.

Capture.JPG

Cheers

Terry

View solution in original post

5 REPLIES 5

Hi,

Include the two points of legs in the vector of x2.  In the following worksheet have done this.

Capture.JPG

Cheers

Terry

Hi Terry, 

Thanks for your response, I now realise that the increments I had used for x and x2 were too large, effectively skipping the points where those loads were applied. 

 

Many thanks

LH

Werner_E
25-Diamond I
(To:LH_13783026)

What Prime is doing is mathematically correct - a vertical line can never be the graph of a function. A step means that there is nothing inbetween.

But I understand that you are used to see that vertical line segment.

Solution is to use a vector for the abscissa values instead of a range. In Prime 11 you can use the convenient "vec" function to convert a range into a vector.

Using the vectors solves your problem.

It depends on the way the functions V and V2 are defined if vectorization when calling them with a vector argument is mandatory. In your case it would not be necessary as Prime would apply automatic implicit vectorization, but I consider it good style to explicitly apply vectorization.

Werner_E_0-1752160321823.pngWerner_E_1-1752160334906.png

 

An interesting solution. I'll have to give this a try, seems like a nice clean way of handling this issue. 

 

Many thanks

LH

Werner_E
25-Diamond I
(To:LH_13783026)


@LH_13783026 wrote:

An interesting solution. I'll have to give this a try, seems like a nice clean way of handling this issue. 

 

Many thanks

LH


Yes.

Actually Terry also used vectors instead of ranges in his solution. I just wanted to show that its not necessary at all to add the two special values.

Announcements

Top Tags