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
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.
Solved! Go to Solution.
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
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.
Hi
Next timer upload your worksheet it is easier to make the corrections instead of describing them.
Cheers
Terry
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 🙂