×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

matrix arguments

matrix arguments

matrix arguments

(OP)
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!   

RE: matrix arguments

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources