No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Fundamental Physical Constants and Unit Conversion in SI (MKS) & Gaussian (CGS) Units

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 13.2 KB File ID: #23908 Version: 1.0

Fundamental Physical Constants and Unit Conversion in SI (MKS) & Gaussian (CGS) Units



Create structs with physical constants and conversion factors to other units in MKS & CGS units.

| Watch this File

File Information

Modified version of Rob deCarvalho's "Simple Units and Dimensions for Matlab" See for original units.m


Simple Units And Dimensions For Matlab inspired this file.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
04 Oct 2010 Todd

Todd (view profile)

Also, I would suggest adding radians (rad = m.m/m.m;), and changing Hz = 2*pi rad/s. Isn't rad/s more consistent than Hz most of the time?

You could also add:
%---- angle ----
m.rev = 2*pi * m.rad; % revolutions
m.deg = pi/180 * m.rad; % degrees

%---- frequency ----
m.rpm = m.rev/m.min; % revolutions per minute

%---- flow ----
m.lpm = m.L/m.min; % liters per minute
m.gpm =; % gallons per minute

Comment only
04 Oct 2010 Todd

Todd (view profile)

This is a great update to a tool I've used frequently. I like the innovation of programmatically adding the prefix units. Thank you!

There is a bug in this part: there are no prefix H units, because the min and max are switched.

Contact us