Relation between depths and thicknesses
9 views (last 30 days)
I have five buried layers of known depths and four of them are of known thicknesses. The last depth is obtained from the relation (z5 = sum t(i) + z1) as shown in attached figure. Please I need a short code to get the depths useing the foremention formula. (N.B. I have give a numerical values for depths and thicknesses)
Thanks in advance for quick response as always.
Bharat Chandra Mukkavalli on 12 Jul 2022
The following code will cater your purpose:
z = [7 38 65 117];
t = [31 27 52 268];
z5 = 0;
z5 = z5 + t(i);
z5 = z5 + z(1);
z(end+1) = z5;
Hope this helps!