Skip to content

Instantly share code, notes, and snippets.

@mwidjaja1
Created April 14, 2014 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwidjaja1/10609173 to your computer and use it in GitHub Desktop.
Save mwidjaja1/10609173 to your computer and use it in GitHub Desktop.
Function for Sediment Concentration in a River
%% Matthew Widjaja.
% Eulers Method Function
% Instructions: Run the function from OneMATLAB.m
%% Function
% This is the function used for OneMATLAB.m
function f = f(c)
global volumeV areaA baseFlowQ sediFlowM sediVelocityVs
f = ((sediFlowM/volumeV) - ((baseFlowQ*c)/volumeV) - ...
((sediVelocityVs/(volumeV/areaA))*c));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment