This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: function soil_code = soil_triangle(sand, silt, clay) % SOIL_TRIANGLE is a computerized implementation of the soil triangle % Function receives three numbers, the fractions of sand, silt and % clay in a soil sample, and returns an integer that can be interpreted to % indicate a specific soil classification (e.g., sandy loam, silty clay, % etc.). If the fractions do not add to unity, an error code of -1 is % returned to the invoking statement. % % Biological and Environmental Engineering 151, Fall 2007 % Matthew Labb % TA: Notta Number % Original code: April 17, 2004 % Modifications: July 22, 2005 % Used by: Timothy Lin - September 23, 2008 % % calling sequence: % type = soil_triangle(sandfraction, siltfraction, clayfraction); % % Variable dictionary % Input parameters % sand is the fraction of sand in the soil sample % silt is the fraction of silt in the soil sample % clay is the fraction of clay in the soil sample % % Output parameter % soiltriangle is an integer corresponding to a specific soil type...
View Full Document
- Fall '05
- Silt, 2005 %, Timothy Lin, 2004 %