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
- :
- Re: Mathcad Prime 4.0 Plotting failed. Replace com...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-04-2018
06:12 AM

12-04-2018
06:12 AM

Hello,

I have this problem which says Plotting failed. Replace complex values and NaNs by real numbers. Although I identified the units and the parameters. Need help ASAP please.

Thanks in advance.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

12-04-2018
10:10 AM

12-04-2018
10:10 AM

Your calculation resulted in an array of arrays, that's what the square brackets around each element means.

That won't plot.

7 REPLIES 7

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

12-04-2018
09:11 AM

12-04-2018
09:11 AM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

Attach your Prime worksheet, not just a picture.

Luc

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

12-04-2018
09:17 AM

12-04-2018
09:17 AM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

Okay, here it is.

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

12-04-2018
10:10 AM

12-04-2018
10:10 AM

Your calculation resulted in an array of arrays, that's what the square brackets around each element means.

That won't plot.

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

12-04-2018
10:21 AM

12-04-2018
10:21 AM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

can you solve it and send me the file ? 'cause I didn't make double arrays in equations :S

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

12-04-2018
12:01 PM

12-04-2018
12:01 PM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

I've got Express 4.0. I was able to open your file, but I cannot program, so where you were programming values I had to pick just one (two pink highlighted expressions.

Attached as mathcad and pdf

Highlighted
##

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

12-04-2018
12:13 PM

12-04-2018
12:13 PM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

Thank you so much, really appreciate it.

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

12-04-2018
12:22 PM

12-04-2018
12:22 PM

Re: Mathcad Prime 4.0 Plotting failed. Replace complex values and NaNs by real numbers. need help- a

1) Your definition of function S.J uses sigma and sigma is not a single value but a vector of values. Thats the rerason S.J returns a nested matrix which can't be plotted.

One way round is to define S.J as a function of two arguments omega and sigma

2) In your plot you added extra units rad/s for omega when calling S.J. This is wrong as omega already has the correct units. Furthermore the axis limits you had chosen are far too big

unless you want the plot be displayed in different units

Worksheet in P5 format attached

Top Tags