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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

4-Participant

## how possible to build two or more curves at one graph (plot) - MathCAD

Could someone explain, please, how possible to build two or more curves at one graph (plot) in MathCAD Prime? "This variable is undefined. Check that the label is set correctly." the error message is shown.

1 ACCEPTED SOLUTION

Accepted Solutions
21-Topaz I
(To:terryhendicott)

Hi,

In the graph the second parameter of the y axis needs to match the definition of the first y(x) with o space between the y and the brackets no units ()

You have y2 then a space (x) in the units you need to change this also.

Cheers

Terry

6 REPLIES 6
21-Topaz I
(To:Nataly_S)

Hi,

Prime works from left to right , top to bottom.

The definition of y2 is below the graph so the graph does not know it.

Solution is to move definition of y2 above the graph or move the graph down below the definition of y2

Cheers

Terry

21-Topaz I
(To:terryhendicott)

Hi,

In the graph the second parameter of the y axis needs to match the definition of the first y(x) with o space between the y and the brackets no units ()

You have y2 then a space (x) in the units you need to change this also.

Cheers

Terry

4-Participant
(To:terryhendicott)

Thank you, Terry, for your response.

Could you, please, say what about x on a graph, it's has the same error. I tried to move in another place within the page but it's not work.

21-Topaz I
(To:Nataly_S)

Hi

Cheers

Terry

20-Turquoise
(To:Nataly_S)

24-Ruby V
(To:Nataly_S)

Additionally to what Terry already wrote you made another mistake. The parentheses, in which you have written the variable x after f2, are for possible units. Where f2 stands you have to type f2(x) and leave the following parenthesis empty.

BTW, typing an evaluation "=" immedeatly after defining the range x turns the range variable into a vector, Thats an undocumented trick but I guess you did not do it on purpose and you should avoid doing so as it can have unexpected effects.

Try to plot f3(x)=x * x and compare it with the plot of f(x):= x^2   🙂

Announcements
Top Tags