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!

MathCAD matrix output help

Status
Not open for further replies.

aesop17

Civil/Environmental
May 28, 2008
1
Hello, I am using MathCAD for first time in five years to set up a series of equations to evaluate piping.

I have all the equations set up and working correctly however I now want to set up 3 of the variables to a set of values each, 1 var to 5 values, 1 var to 6 values, and 1 var to 3 values.

I then want each value to be calculated with each other value creating a large table or matrix so that each combination can be seen. How would I go about doing this? I have tried setting up matrices but it just isn't working as they are different sizes.


Thanks,
 
Replies continue below

Recommended for you

with three variables you get a data cube.
The normal way is to create three vectors (lists) of their values, each with its own index "range variable".

You would then take then pair wise to make a matrix of two variables while the third is held fixed.

The collab is better for exchanging example programmes.

Philip
 
While you're there, you can do a search for "MDA" multidimensional array, if you want to go that route. There is a posting containing utilities for dealing with MDAs.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor