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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Plotting failed. Replace complex values and NaNa by real number.

PL_9781183
2-Explorer

Plotting failed. Replace complex values and NaNa by real number.

Hi, i have used too many hours trying to get the plot work but without success. Plot worked in mathcad 15 with normal plotting tool but need to convert calculation to prime 11.

thx

Screenshot 2025-07-28 135147.png

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:PL_9781183)

You define X1:=q but q is not defined.

The native plots in Mathcad and also in Prime have a feature called "Quickplot" which means that you don't have to define the variable you use for the abscissa ("x-axis") and Mathcad would  automatically assign values for plotting (by default from -10 to 10 and you can change that by editing the axis limits.

But this only works in the native pots and not for the Chart Component.

And in Prime this only works OK for the native plot if you use unitless abcsissa values!

So no matter if you use the native plot or the Chart component, in Prime you have to define the values q for the absicissa by providing a range variable using correct units (in your case N/m = kg/s-2. For example

Werner_E_0-1753721770625.png

If you do this, both the native plot as well as the Chart component will work OK. Keep in mind that the chart component does not show or support units, it just uses the naked values.

Here the native plot:

Werner_E_2-1753722253942.png

 

BTW, you may consider using unit "deg" when you define alpha (so you don't need the factor pi/180 when using it)

 

Prime 11 sheet attached

View solution in original post

3 REPLIES 3

Need q with unit kg/s^2.

image.pngimage.png

Thx for quick response, but i dont get it to work. Could you send me your file and use chart component, because i need grid behind the plot

Werner_E
25-Diamond I
(To:PL_9781183)

You define X1:=q but q is not defined.

The native plots in Mathcad and also in Prime have a feature called "Quickplot" which means that you don't have to define the variable you use for the abscissa ("x-axis") and Mathcad would  automatically assign values for plotting (by default from -10 to 10 and you can change that by editing the axis limits.

But this only works in the native pots and not for the Chart Component.

And in Prime this only works OK for the native plot if you use unitless abcsissa values!

So no matter if you use the native plot or the Chart component, in Prime you have to define the values q for the absicissa by providing a range variable using correct units (in your case N/m = kg/s-2. For example

Werner_E_0-1753721770625.png

If you do this, both the native plot as well as the Chart component will work OK. Keep in mind that the chart component does not show or support units, it just uses the naked values.

Here the native plot:

Werner_E_2-1753722253942.png

 

BTW, you may consider using unit "deg" when you define alpha (so you don't need the factor pi/180 when using it)

 

Prime 11 sheet attached

Announcements

Top Tags