soil_triangle - function soil_code = soil_triangle(sand,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 3

soil_triangle - function soil_code = soil_triangle(sand,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online