File Exchange

image thumbnail

Moody Diagram

version 2.0 (72.8 KB) by Tom Davis
Generates Moody Diagram


Updated 10 Dec 2020

View Version History

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

MOODY(UNITS,PAPER,NAME) generates a four axis, publication quality Moody diagram as a PAPER size portable document format file NAME with UNITS. Default units are IMPERIAL. If units are SI, the default paper size is A4. If units are IMPERIAL, the default paper size is LETTER. The default file name is MOODY.PDF.

MOODY writes letter size moody.pdf with imperial units.
MOODY SI writes A4 size moody.pdf with SI units.
MOODY IMPERIAL A4 writes A4 size moody.pdf with imperial units.
MOODY SI LETTER writes letter size moody.pdf with SI units.
MOODY SI A4 MOODY.SI.pdf writes A4 size with SI units.

Cite As

Tom Davis (2021). Moody Diagram (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (37)


The material box is not readable.

Tom Davis

Hello, Gerard --
"Slightly broken" and "a bit garbled" are very generous descriptions; thank you. I will clean up the labeling and remove the dependence on the MS LineDraw font in the next week or two. It seemed like such a good idea 15 years ago.

Gerard Nagle

Seems to be slightly broken in the version of MATLAB that I am running, R2020a.
the equations ofr the friction factor, Reynolds Number adn relative roughness along with some values in the tables aren't coming out correctly, a bit garbled

Luca Racundo

Adam Whitney

Ian Brown

Renato Carvalho

Fluid moody

ftnfch fbhfdhn

Brian Holm-Hansen

Very thorough and well done. Thank you!


It seems that TeX interpreter doesn't work well in newer versions. I've tried R2011a and results are far from those shown in the picture. Help is welcome!

Stephanie Conn

How would I add experimental data to the program?

numero de reynolds es adimensional igual que el factor de friccion

la zona de transicion va solamente hasta 10000

Alberto Cruz

Haochun Zhang

it is great.

Bhautesh Mistry

great effort taken

Eric Wooden

Looks good but your transition zone to complete turbulence is quite a bit larger than the traditional Moody Chart (comparing it to my version from Crane 410).

before exam

thanks for pdf!!

babak tirandaz

Calvin Lai

Run the m-file moody gave good matlab plot.
some modificatioins are needed for computer of using non-English operation systems

rt(y(" èy-

Pierre Sullivan

This is wonderful

John Fenton

I am sorry about the last review, written by me in too much of a hurry, and I would withdraw it if I could. Tom Davis (the program author) patiently wrote back to me pointing out that there was indeed an SI option. I found that it works very well.

John Fenton

Not much help. Why do Americans still use feet?

ewu cambia

tarek mohamed

mohamed omarar

Gasser Elfaham

It saved me this year

evan mueller

Nathan Collier

I send students here when we do losses as this moody chart is much better than most I have seen in books. Very detailed and informative.

Sandy Small

moh alo

ali gholami

Izru Garner


ali heydari

dear sir
would you please send me the numerical simulation of mass transfer in supported liquid membrane in gas separation application?

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!