Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable Names in Mathcad

Status
Not open for further replies.

rhl

Chemical
Jan 19, 2003
1
Is there a way to name a variable in Mathcad like: VPC_q and then define "q" prior to the variable like: q=black, so that I don't have to write out VPC_black and change all of the following equations that use VPC_black when I want to change from VPC_black to VPC_blue, for example?..TIA, Ron
 
Replies continue below

Recommended for you

Can't think of an elegant way, although an inelegant way is possible:

Place all your blue and black values in a matrix. Define a function of an index value that returns the value desired from the matrix. Then you use the function wherever you need and you use an auxilliary variable that's passed to the function. I posted an example in the Studyworks Collab at:

TTFN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor