frictionfactor
Version 1.0.0 (1.69 KB) by
Maile Juarez
Sick of squinting at the Moody diagram? Use this function instead to compute your friction factor (Fluid Mechanics pipe flow analysis).
Takes the following inputs:
e (roughness)
d (pipe diameter)
rho (density)
mu (viscosity)
vave (average velocity)
uid (indicates whether using English or metric)
And outputs:
friction factor
relative roughness
alpha (for turbulent or laminar)
Reynold's number
Inputs may be in either English or metric. Uses the Colebrook function for iteration.
Cite As
Maile Juarez (2026). frictionfactor (https://www.mathworks.com/matlabcentral/fileexchange/75908-frictionfactor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
