Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Problem to draw 2D graphs in ptc mathcad

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
02:43 AM

05-17-2021
02:43 AM

`Hello friends, I have to calculate a beam on elastic basis by the finite element method for my master thesis, I do not understand why there is an error for plotting the graph.I attached the file.Really need help because the deadline for submitting the thesis is Friday, May 28`

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
04:16 AM

05-17-2021
04:16 AM

I've missed one square brackets , now it worked thank you Luc.

God bless you!

Angerico Eric

8 REPLIES 8

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
03:04 AM

05-17-2021
03:04 AM

Re: Problem to draw 2D graphs in ptc mathcad

Each value of M(x) for a value of x that you are trying to plot is a 1-element vector. You cannot plot that way.

If you extract that element, it should work. The simple remedy should be: append

[ORIGIN

to the M(x) in the plot, this 'll take the first (and only) element of the M(x) vector.

But a better way is to prevent getting vectors as results for M(x). I see that v(x) also produces arrays. Haven't tracked back further.

Success!

Luc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
03:16 AM

05-17-2021
03:16 AM

Re: Problem to draw 2D graphs in ptc mathcad

Thank you Luc for you response,i'm new to mathcad prime and i don't understand clearly that you've said but if you can give an example, i hope that will understand.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
03:31 AM

05-17-2021
03:31 AM

Re: Problem to draw 2D graphs in ptc mathcad

See attachment.

Success!

Luc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
03:37 AM

05-17-2021
03:37 AM

Re: Problem to draw 2D graphs in ptc mathcad

I've tried Luc but i've always get this error message in the plot:"plot failure replace complex values and NaN inputs with real numbers"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
04:04 AM

05-17-2021
04:04 AM

Re: Problem to draw 2D graphs in ptc mathcad

The error messages with Mathcad have always left something to be desired. Prime is no exception to that.

Anyway, I now see the source of the vectors. You've type square brackets '[' and ']' where you didn't want to create a vector or matrix. Example:

In all of those places there's a real square bracket and it creates a vector or matrix.

You should NEVER type a square bracket unless you want to create a vector or matrix. Change those square brackets to round brackets '(' and ')', and you'll see the square brackets disappear from the symbolic result. Note that Prime will display them as square brackets when it feels like, but they remain round brackets (they'll change back to round when needed.)

Success!

Luc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
04:13 AM

05-17-2021
04:13 AM

Re: Problem to draw 2D graphs in ptc mathcad

Y've changed all square brackets to round brackets Luc but i've got the same error in the plot and i don't know what is the problem now

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-17-2021
04:16 AM

05-17-2021
04:16 AM

I've missed one square brackets , now it worked thank you Luc.

God bless you!

Angerico Eric

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

05-18-2021
08:25 AM

05-18-2021
08:25 AM

Re: Problem to draw 2D graphs in ptc mathcad

Hi,

Enclosed is an analysis called "winkler springs FEA" that gets a moment distribution.

Cheers

Terry