Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

matrix arguments

Status
Not open for further replies.

Geola

Geotechnical
Joined
Nov 14, 2007
Messages
11
Location
US
I have some trouble in data inputing and outputing to a function in Mathcad programming. Is it ok to use matrix as input and output arguments? Is there any way to define some "global" vairable or matrix in Mathcad? Thanks!
 
Yes, you can use any variable to get data into (and out of) a Mathcad program function. The only downside is that Mathcad doesn't like mixed units in an array or matrix.

All variables outside the "program" are available inside the protgram; but variables inside the program are local to the program. A common trick for getting multiple results out of a program function is to just stack them all together in a single array (use augment() or similar functions) and pass that array out as the result of the function.


Bung
Life is non-linear...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top