wschwanghart / topotoolbox

A MATLAB software for the analysis of digital elevation models -
https://topotoolbox.wordpress.com/
153 stars 89 forks source link

fixed variable assignment bug introduced after 2015b speed improvements #3

Closed sriedl closed 8 years ago

sriedl commented 8 years ago

This fixes usage of the drainagebasins function.

A bug in/@FLOWobj/drainagebasins.m was introduced in the 4/3/2016 changes. It provoked a "Subscripted assignment dimension mismatch" error when using drainagebasins(FD) (i.e. with nargin=1). According to a git diff with the former version, there was a simple variable indexing error which is now corrected.

N.B. I tested the function using 2015a.

wschwanghart commented 8 years ago

Thanks, Simon, for fixing this!