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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Compatibility of graphs between Mathcad and Mathcad Prime

TT_12301010
4-Participant

Compatibility of graphs between Mathcad and Mathcad Prime

First, in mathcad15, the output is as shown below.

 

The result of calculating this program in Mathcad Prime 10 through a converter is as follows.

I would like to know how to deal with the error here.

 

The error is

"Plotting failed. Replace complex values ​​and NaN with real values ​​or check the units."

"Scale has no units. Insert units next to the trace definition."

 

The functions for each are as follows.

 

Please let me know if you have any questions.

 

Translated by the moderation using Google Translate
-----------------------------------------------------------------------------------------------

 

まずmathcad15では下図のように出力されます。スクリーンショット (15).png

このプログラムをコンバーターを通してmathcad prime10で計算した結果が次になります。

スクリーンショット (12).png

ここでエラーの対処法をお聞きしたいです。

エラーとして

「プロットに失敗しました。複素数値とNaNを実数値に置き換えるか、単位を確認してください。」

「目盛に単位がありません。トレース定義の横に単位を挿入してください。」

 

それぞれの関数は以下になります。

スクリーンショット (21).pngスクリーンショット (20).pngスクリーンショット (16).pngスクリーンショット (17).pngスクリーンショット (18).pngスクリーンショット (19).pngスクリーンショット (11).png

ご不明点があればおしえてください。

2 REPLIES 2
Werner_E
25-Diamond I
(To:TT_12301010)

Its to hard to debug a picture so you would have to attach the worksheet itself. Maybe a simplified sheet with dummy data which shows the same problem.

 

From what I see in the pictures both, Mathcad and also Prime, just show the plot of the very first trace. So they behave the same with the only difference that Prime tells you why it doesn't plot the other traces a s well via the error message.

 

The two programs behave differently in case you demand to plot the graph of a function which returns no plottable value (either NaN or a complex number or a failed calculation..

Real Mathcad would plot without any error if at least one trace contains plottable points and then silently ignores the others which can't be plotted without any error message.
Prime does the same but additionally throws an error to tell the user why it could not plot the other traces - not really bad behaviour IMHO.

 

Mathcad 15:

Werner_E_0-1733242509312.png

 

Prime 10

Werner_E_1-1733242775648.png

 

So I suggest that you check the data in all but the first column of your P_out matrix - chances are that they all are either NaNs or non-real - maybe values with a tiny imaginary part. This would explain why you can't plot them.

ttokoro
20-Turquoise
(To:TT_12301010)

Prime 10 plot has units W and s or 1/s for first plot line only. 
So, deleate the units and all plot lines have no unit may make the plots. 

 

日本語で有れば所が個別に対応しますのでこのSNSで直接コンタクトをお願いします。

 

Announcements

Top Tags