Skip to content

Instantly share code, notes, and snippets.

@sunsided
Created July 16, 2022 11:02
Show Gist options
  • Save sunsided/70d178de8a50dac5d85276da5c41c500 to your computer and use it in GitHub Desktop.
Save sunsided/70d178de8a50dac5d85276da5c41c500 to your computer and use it in GitHub Desktop.
Tobler's rule in Matlab
function [w] = tobler(slope, scaling)
w = scaling*6*exp(-3.5 * abs(slope+0.05));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment