Adjust g/gram/grams to avoid a conflict with an old gram.m function in the controls toolbox. If you have this conflict, you won't be able to use 'gram' unless you put units higher in the MATLAB path.
Remove display() overload as suggested by MATLAB docs since that will call disp(), so just leave the overload for that. Removed the old inexact case warning suppression in convert.m since we are no longer ignoring case and replaced it with a check for invalid units (where the str2num returns empty). Added radians (to rad) and steradians (to sr) to unitsSymbols as well as fix case for kJ and kW.
For um and urads, when wrapping, like say with \mathrm, put the \mu outside so you get {\mu}\mathrm{m} which works when converting to docx via pandoc rather than \mathrm({\mu}m}.
Fixed wrong prefix letters (not sure what I was thinking) deca is 'da' and not 'D', exa is 'E' and not 'e'. Also embarrassing misspelled 'yotta' as 'yetta' (because probably staring at zetta). Also move {\Omega} outside tl/tr for pandoc to docx workaround like with {\mu}. Added a special case of converting 'sec' with a prefix to prefix+'s' and prefix+'rads' to prefix+'rad'. Added coverting a 'u' prefix on a valid unit to {\mu} when not plain text.
Change output to return a cell array of strings if the input array has more than one row. Detect and remove a trailing comma from the resulting strings before appending the units string so that you can use a comma in the format string to create a comma-separated list.
unit.m: add test that the result of evaluating the units expression string as a double; this isn't perfect, but at least returns empty if you are testing is something is a unit that evaluates to a struct like 'rng'. units.m: added 'obj' as an alias for 'object' when using 'units class obj'.
Initial commit
Merge branch 'master' of https://github.com/ryangray/matlab_units