Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab code An interesting characteristic of soil is the percentage of water it holds at wilting point and at field capacity. The vertical profile of

image text in transcribed
Matlab code
An interesting characteristic of soil is the percentage of water it holds at wilting point and at field capacity. The vertical profile of 3 soil type's field capacity and wilting point has been measured in a laboratory as follows. Soil A Depth Soil B Soil C Wilting Point/Field Wilting Point/Field Capacity 7%/14% 1096/14% 14 15%/19% 19 18%/22% 19%/24% Wilting Point/Field Capac 696/14% 10%/19% 11%/20% Depth Depth aci 0 7 14 18 19 1096/15% | 0 1796/39% | 5 1896/62% | 10 14%/52% | 11 17%/22% 19 0 Problem 1 (15 points): Write code that is able to store the vertical profile of any soil type's wilting point and field capacity in Matlab. Your code must be able to store any number of soil types and any number of measurements on each vertical profile (i.e. note that Soil C has only three vertical profile measurements while the others have 5 vertical profile measurements). You can assume that all soil types will have points at 0 cm and 19 cm Problem 2 (25 points): For any soil type, write code that can linearly interpolate the soil depth profile to a profile of arbitrary depths. For example, the code should be able to transform the Soil A profile to a profile with points at 0, 4, and 19 cm. An interesting characteristic of soil is the percentage of water it holds at wilting point and at field capacity. The vertical profile of 3 soil type's field capacity and wilting point has been measured in a laboratory as follows. Soil A Depth Soil B Soil C Wilting Point/Field Wilting Point/Field Capacity 7%/14% 1096/14% 14 15%/19% 19 18%/22% 19%/24% Wilting Point/Field Capac 696/14% 10%/19% 11%/20% Depth Depth aci 0 7 14 18 19 1096/15% | 0 1796/39% | 5 1896/62% | 10 14%/52% | 11 17%/22% 19 0 Problem 1 (15 points): Write code that is able to store the vertical profile of any soil type's wilting point and field capacity in Matlab. Your code must be able to store any number of soil types and any number of measurements on each vertical profile (i.e. note that Soil C has only three vertical profile measurements while the others have 5 vertical profile measurements). You can assume that all soil types will have points at 0 cm and 19 cm Problem 2 (25 points): For any soil type, write code that can linearly interpolate the soil depth profile to a profile of arbitrary depths. For example, the code should be able to transform the Soil A profile to a profile with points at 0, 4, and 19 cm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions