Rank: 3141 based on 37 downloads (last 30 days) and 2 files submitted
photo

Rob deCarvalho

E-mail
Company/University
MIT

Personal Profile:

 

Watch this Author's files

 

Files Posted by Rob deCarvalho View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Mar 2006 Simple Units and Dimensions for Matlab This code provides an effecient, easy to use, method of incorporating real world units ... Author: Rob deCarvalho chemistry, physics, unit units dimensions..., si 17 7
  • 4.75
4.8 | 5 ratings
21 Feb 2006 Units and Dimensions Suite for Matlab A complete suite for using real world units in matlab. Author: Rob deCarvalho chemistry, physics, units dimensions dime... 20 10
  • 4.83333
4.8 | 6 ratings
Comments and Ratings on Rob deCarvalho's Files View all
Updated File Comment by Comments Rating
01 Feb 2013 Units and Dimensions Suite for Matlab A complete suite for using real world units in matlab. Author: Rob deCarvalho David Smith

08 Nov 2012 Units and Dimensions Suite for Matlab A complete suite for using real world units in matlab. Author: Rob deCarvalho Sky Sartorius

I use this function all the time. I was trained in imperial units but now work in Germany - this thing is awesome. Really reduces errors, makes code easier to understand, and speeds up my work.

12 Sep 2012 Units and Dimensions Suite for Matlab A complete suite for using real world units in matlab. Author: Rob deCarvalho Sky Sartorius

I like this quite a bit. I had to add a lot of my own units for my specific field, e.g. nautical miles, slugs, psf, and for the kitchen (tsp, Tbls). I look forward to having mature units capability in MATLAB one day, and this is a good first step. Maybe Mathworks will take the reigns, if we're lucky, as units are a capability that Matlab's competitors DO have.

27 Mar 2012 Units and Dimensions Suite for Matlab A complete suite for using real world units in matlab. Author: Rob deCarvalho Frank Dekens

Very helpful!
I would also prefer the format proposed by Greg, with a minor tweak of having the units after the value. so
mass = 1.0 [kg]
I don't even mind the * sign, or even the u. (since those would be easy to replace afterwards). So something like:
mass = 1.0 * [u.kg]
It would also be nice to drop the ^1, since that is the standard power and isn't really needed.
Thanks, FGD

13 Mar 2012 Simple Units and Dimensions for Matlab This code provides an effecient, easy to use, method of incorporating real world units ... Author: Rob deCarvalho Patrik Eschle

Simple and robust, thank you.

I use it in parallel with physunits, that provides more sophisticated units handling, but is more complex and thus more error prone.

Why oh why is this not a Matlab native feature?

Contact us