physunits module from FORTRAN (Scripts) Publisher's description
from Naor Movshovitz
The physunits toolbox is an attempt to confer dimensional "awareness" to the MATLAB environment.
The physunits toolbox is an attempt to confer dimensional "awareness" to the MATLAB environment. The motivation for this, as well as a suggested way to go about it, are explained in
% Petty, G.W., 2001: Automated computation and consistency checking of
physical dimensions and units in scientific programs. Software -
Practice and Experience (Volume 31, Issue 11, 19 June 2001)
The author of the same has also made available for download a FORTRAN90 module that implements this ides in the FORTRAN language. The module and paper can be downloaded from
The physunits toolbox is based on the above module, and expands it, while trying to adhere consistently to MATLAB standards and practices.
The zip file contains:
@preal (directory) -
In MATLAB, classes are defined by a directory of the class name preceded by a @ sign. The @preal directory contains the preal class definition and methods. To use the preal class, the directory IMMEDIATELY ABOVE @preal should be added to the MATLAB path.
MATLAB .m file with predefined units and constants. See documentation for usage.
info.xml - Pointer to the html documentation file. Used by the MATLAB
html (directory) -
Containing the html help and documentation files.
physunits.m - a function for switching the physunits on or off.
iceball.m - a short sample program that demonstrates the preal class.
System Requirements:MATLAB 7 (R14)
Program Release Status: New Release
Program Install Support: Install and Uninstall