Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Okay, I'm getting very confused with array and Mathcad. Can anyone clear this up? Thanks.

Status
Not open for further replies.

USER2018

Electrical
Sep 28, 2018
1
I am trying to compute some average values of resistivity for soil volume. That means I need the average values of certain dimensions in an array. I'm having trouble with this, as the attached file shows. I need to compute the average of the first and second values in a column, and I'm not sure how to do it.

Can you please help? I'm attaching a Mathcad file for you to look over if you wish. (Note: I need to take the average of a 0 row and a 1 row value, then assign it to a 1 row in an array.)

Thanks.

 
 https://files.engineering.com/getfile.aspx?folder=6d12af22-ed35-4442-b769-0f868017d00c&file=RESISTANCE3.xmcd
Replies continue below

Recommended for you

need to layup calc properly as one cannot see which array you are trying to use/access
 
I don't understand your problem; you seem to be able to use and manipulate the array indices, so what exactly is the problem?

answer[i,j := (row[i,j] + row[i+1,j)/2

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! faq731-376 forum1529 Entire Forum list
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor