Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Please have a look at the following example-function:
If I want to plot this function with Newton (N) on the y-Axes and Millimeters (mm) on the x-Axes, the following happens:
Unfortunately my Mathcad Prime 8.0 is in German, but the error is the following:
Plotting failed. Replace complex Values or NaN-values with real numbers.
Also you can see that it replaces mm with mm / m.
If I erase the units out of the fuction like this:
Then it will work, as you can see here:
Does somebody know how I can fix this, so that I do not have to erase the units from my function?
I will leave the mathcad-document attached here.
Greetings
Spedex
Solved! Go to Solution.
You have x undefined, in effect you are using a quickplot where Prime will define x for you. It wil have a range from -10 to 10, but no units. The solution is to define x as a range with the proper unit, example:
Success!
Luc
You have x undefined, in effect you are using a quickplot where Prime will define x for you. It wil have a range from -10 to 10, but no units. The solution is to define x as a range with the proper unit, example:
Success!
Luc
Hello LucMeekes,
thank you very much.
I tried it out for myself and it worked.
I am facing a new challenge now: negative x-values.
If I define x ike this:
And the plot that occurs is very interesting, but not what it should look like:
Do you know how to fix this?
Tried many things, nothing worked out.
I will leave the document attached again.
Greetings
Christoph
The definition of a range is:
<range> := <first value> , <second value> .. <last value>
and NOT:
<range> := <first value> , <step value> .. <last value>
If you change the 1 mm in your definition to -199 mm, it should work as expected.
Success!
Luc
Thanks a lot, it worked!
Greetings
Spedex