A class for handling dimensioned variables.

Version 5.0 (319 KB) by Lothar
Realize calculations of numerical variables (scalar, vector,matrix) with their corresponding unique or mixed dimension(s).
9 Downloads
Updated 6 Oct 2019

View License

Dimensioned variables are useful to make calculations with respect to their dimensions. This with the intention to avoid miscalculations due to mixing dimensions or misunderstandings.
This advanced variable class is a first attempt to this topic without claim to completeness. Design is done in the way that dimension definitions can be modified or enlarged dynamically to fit special needs.
The dimvar variables can combine a single or multiple values (double) with
• one unique dimension, so called a unique "dimvar"-variable
• or multiple dimensions, so called mixed “dimvar”-variable
The functionality is realized by the 'dimvar'-class and supported by the 'dimDefs'-function. The class-provides all methods for math operations, dimension conversions, comparisons and further miscellaneous operations while the function-acts as a dynamic unit definition container to offer the possibility for personal modified or enlarged unit definitions.

Cite As

Lothar (2024). A class for handling dimensioned variables. (https://www.mathworks.com/matlabcentral/fileexchange/72946-a-class-for-handling-dimensioned-variables), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
5.0