This is a very simple program that reads in an a DEM (in Arc Ascii format), and detrends the DEM to a new file based on a hard-coded valley slope. It is assumed that the valley is sloping downward in the north direction. Feel free to modify as you see fit.
Joseph Wheaton (2021). Detrend DEM by Valley Slope (https://www.mathworks.com/matlabcentral/fileexchange/18893-detrend-dem-by-valley-slope), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!