No BSD License  

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

4.0

4.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 13.24 KB File ID: #23908

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

by Dennis Boyle

 

26 Apr 2009

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

| Watch this File

File Information
Description

Modified version of Rob deCarvalho's "Simple Units and Dimensions for Matlab" See http://www.mathworks.com/matlabcentral/fileexchange/9873 for original units.m

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Simple Units and Dimensions for Matlab

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
04 Oct 2010 Todd

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.

04 Oct 2010 Todd

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 = m.gal/m.min; % gallons per minute

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
physics Dennis Boyle 27 Apr 2009 11:06:00
chemistry Dennis Boyle 27 Apr 2009 11:06:00
measurement Dennis Boyle 27 Apr 2009 11:06:00
si Dennis Boyle 27 Apr 2009 11:06:00
mks Dennis Boyle 27 Apr 2009 11:06:00
cgs Dennis Boyle 27 Apr 2009 11:06:00
physical constants Dennis Boyle 27 Apr 2009 11:06:00
unit conversion Dennis Boyle 27 Apr 2009 11:06:00
fundamental physical constants Dennis Boyle 27 Apr 2009 11:06:00
gaussian units Dennis Boyle 27 Apr 2009 11:06:00
unit conversion Sebastian Schleussner 24 Oct 2010 05:43:43
cgs yossi farjoun 06 Jun 2011 06:34:14

Contact us at files@mathworks.com