blob: 7f6dedd8c686d09c28019f83a0e45fe0852bd6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc ;funcprot(0);
//Example 2.1
//Initializing the variables
z1 = 0; //Taking Ground as reference
z2 = -30;//Depth
rho = 1025;//Density
g = 9.81;//Acceleration due to gravity
//Calculation
pressureIncrease = -rho*g*(z2-z1);
disp(pressureIncrease/1000,"Increase in Pressure (KN/m2):");
|