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

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

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

Nataly_S
4-Participant

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

Screenshot_111.png

 

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

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

View solution in original post

6 REPLIES 6

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

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

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.Screenshot_112.png

 

Hi

Next timer upload your worksheet it is easier to make the corrections instead of describing them.

Cheers

Terry

ttokoro
20-Turquoise
(To:Nataly_S)

image.png

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   🙂

 

Top Tags