cancel
Showing results for
Did you mean:
cancel
Showing results 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

6-Contributor

plot variable range

Hi,

I'm trying to plot a function but I get an error and I'd like to ask:

Can I define a variable in a range between two other variables? and if not, how can I do it differently. Please see X3 variable and Y3(X3) function.

thanks,

Eleni

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald III
(To:EN_9902818)

The error message is pretty clear. You have defined X3  as a range from 0 to L, but L has a unit (m), so Prime wants you to provide the second value in the range. Define:

(Just type a comma between the 0 and the .. and you'll see where you can add the 0.1*m. Make sure that m is a unit) and your first problem is gone.

Regarding the plot: You have defined Y3 to be a function of X3. If you want to plot it, you have to call it with an argument.

So on the horizontal axis change Y3 to

Y3(X3)

and your Plot is without error. You may want to set the units for the Y3(X3) trace to mm...

Success!

Luc

2 REPLIES 2
23-Emerald III
(To:EN_9902818)

The error message is pretty clear. You have defined X3  as a range from 0 to L, but L has a unit (m), so Prime wants you to provide the second value in the range. Define:

(Just type a comma between the 0 and the .. and you'll see where you can add the 0.1*m. Make sure that m is a unit) and your first problem is gone.

Regarding the plot: You have defined Y3 to be a function of X3. If you want to plot it, you have to call it with an argument.

So on the horizontal axis change Y3 to

Y3(X3)

and your Plot is without error. You may want to set the units for the Y3(X3) trace to mm...

Success!

Luc

6-Contributor
(To:LucMeekes)

Thanks Luc,

much appreciated.

Announcements
Top Tags