set_layered_medium()
Description: Create a medium struct for use in ASA layered medium calculations.
Usage
layered_medium = set_layered_medium(z_start, medium_properties);
Arguments
- z_start An array of numbers representing the start point of each layer on the z-axis in m. The first layer must start at z = 0.
- medium_properties An array of FOCUS medium structs as constructed by set_medium.
Output Parameters
- layered_medium An array of MATLAB structs with the following properties:
- z_start The start point of the layer on the z-axis in m
- z_end The end point of the layer on the z-axis in m. This is equivalent to the start point of the following layer or infinity for the last layer.
Notes
Each layer is constructed such that layer n spans from z_start(n) to z_start(n+1) and has all of the properties specified in medium_properties(n).

