Created
April 14, 2014 01:10
-
-
Save mwidjaja1/10609173 to your computer and use it in GitHub Desktop.
Function for Sediment Concentration in a River
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 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