Commit [ed0a19] default  Maximize  Restore  History

units: use compact and one-line option to ease parse of Units (bug #38270)

* units.m: by making use of the --compact and --one-line options, GNU units
only outputs the conversion factor so it won't be necessary to parse it from
the output making a call to str2double enough. Remove call to eval(). Give
more meaningful errors for input checking, and identify possible attempts to
non-linear conversions. Change style to follow Octave coding conventions.
Add more tests.

carandraug carandraug 2013-10-20

changed miscellaneous/inst/units.m
miscellaneous/inst/units.m Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks