Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

3D matrix with distances between x,y,z, coordinates


3D matrix with distances between x,y,z, coordinates


I have asked help for a computation sheet to compute settlements below a group of point loads and I have received very useful help from the forum, but I have now faced another problem while making the computation sheet.


The program should compute the distances R between all load points and all calculation points at all depths.

I have been able to make the program to compute the stresses below the first loading point,

but I have not been able to compute the stress below n-points.

The problem is that don't know how to form the 3D matrix with the two 2D matrixes.


As attached is the computation for the first load point, and my initial try for all 4 points.


Thanks again for your help.


Not sure if this modification does the caclulation you try to accomplish.



Thank you for your reply, but that's not what I had in mind.


Probably I haven't been clear enough what the aim in to computation is.

The aim is to compute stresses due to a group of point loads, below a group of  points.

This type of a program could be used for example to compute settlement of a group of tip bearing piles,

or when there are several point loads  the sheet could be used to compute settlement below any shape of loading.


I have now made some additional tries. As attached is my latest version.

I was able to compute the x,y and z distances between all calculation points.

Now I should make a matrix with all distances Rall between all load points and computation points at all depths.


The Rall matrix however does not have the correct amount of rows... the amount of rows should be 5 as is the number of rows in zall

Mathcad does not (despite many requests, complaints, and rants) deal with arrays of dimension larger than 2.  So your attempt to develop a three-dimensional array is doomed.  You may have a two dimensional array where each element is either a scalar, a vector, or a two dimensional array. 


You can also find (if your search is lucky) some ways to get around this restriction.


Thanks for comments and recommendations.

The calculation sheet is still a mess, but the programming seems to work now

with the aid of vectorization.