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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How do you get units to show up correctly in x-axis using Mathcad Prime 3.1?

mepp
2-Explorer

How do you get units to show up correctly in x-axis using Mathcad Prime 3.1?

I am able to have units show up correctly in the y-axis but when I put seconds in the x-axis, it adds 1/s to it.  Does the x-axis have to remain unitless?

6 REPLIES 6
Fred_Kohlhepp
23-Emerald I
(To:mepp)

Interesting!

Try adding:

      Time3 := Time3*s

That does seem to fix how the unit is displayed in the plot.  It is a little weird though, because it still works even if I take the unit off of the ReadFile callout.  Is this just a bug I wonder?

Fred_Kohlhepp
23-Emerald I
(To:mepp)

Apparently Prime was not assigning units in the READFILE statement.  (Odd, it assigned ppm.)

Prime does a lot of "labeling" to things: Automatic, variable, unit, constant, function, system, and keyword.

Most of the time when I come across this it tracks back to a label that isn't right.

RichardJ
19-Tanzanite
(To:mepp)

If you evaluate Time3, what does it show for units?

mepp
2-Explorer
(To:RichardJ)

If I evaluate Time3, it doesn't show a unit.

If I try to add a unit to it, it automatically adds (1/s)

RichardJ
19-Tanzanite
(To:mepp)

It looks like a bug to me. It's not applying the unit in the READFILE statement. Strange, since it seems to apply ppm OK. Try applying kg as the unit, and % as the unit, and then evaluating.

Announcements

Top Tags