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 Questions
- :
- Mathcad Prime 3.0 X-Y Plot "Plotting Failed"

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

10-15-2014
05:06 PM

10-15-2014
05:06 PM

Hi,

I am working on this worksheet, and I cannot get Mathcad to plot my equation. I get the following error: "Plotting Failed. Replace complex values and NaNs by real numbers."

I am not using any complex values and I shouldn't have any NaNs unless their is a syntax issue.

I have looked through many resources, and I haven't found a solution to this seemingly simple problem.

Thanks in advance,

Charlie

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

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

10-15-2014
05:26 PM

10-15-2014
05:26 PM

As Mike already pointed out you have some unit problems in your gain function.

Have you ever evaluated gain() for a sibgle value of s? Sure not, so try it now.

The first unit mismatch is highlighted in the picture below. The fraction yield Ohm but the summand 1 is unitless.

Next problem may be that the green summand yields 1/sec^2 and so should the first summand.

2 REPLIES

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

10-15-2014
05:13 PM

10-15-2014
05:13 PM

I think the problem is with your gains function.

Break it down and change the unit compatibility.

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

10-15-2014
05:26 PM

10-15-2014
05:26 PM

As Mike already pointed out you have some unit problems in your gain function.

Have you ever evaluated gain() for a sibgle value of s? Sure not, so try it now.

The first unit mismatch is highlighted in the picture below. The fraction yield Ohm but the summand 1 is unitless.

Next problem may be that the green summand yields 1/sec^2 and so should the first summand.

Announcements

____________________________________ If you experience problems when attaching a Mathcad sheet file ( .mcd, .xmcd or .mcdx) to the message then zip it first. To get the .zip file, use Windows Explorer, select the sheet file, right-mouse click and select "Send to" then "Compressed (zipped) folder". This results in a .zip file containing the worksheet that you can attach

Top Tags