This MATLAB code imports time-series data related to riverbank and water depth coordinates in XY format, sampled every 10 minutes. The code calculates the cross-sectional area for each water depth and writes the following data to an Excel file: Date/Time, Water Depth, and the cross-sectional area for each water depth.