I have a worksheet that I did by grabbing the data and assumed no units (I kept track of units at the end). Question has come up if I can integrate the units into the matrix. Attached is a subset of what I have done. Your assistance in cleaning this up is much appreciated. I am looking for a better way of doing this
You can't have mixed units in an array. Mathcad only allows a single unit to be attached to an entire array. But you can use the column select operator to extract the columns of the data, and you can attach units at that point. __________________ � � � � Tom Gutman
I remember that there was no way of mixing units in the array. How would you handle the second part ... where I take a weighted average? PS, my original sheet works, I'm trying to clean up the MathCAD structure (if possible).
The actual weighted average calculations work fine with units. To combine values with disparate units into a single table you have to divide each value by the units you want inthe table. __________________ � � � � Tom Gutman
You have defined VDI.f as a 4 element vector. You then redefine VDI.f as a 2x2 matrix. Then you attempt to get the second element of VDI.f using VDI.f[2. You can't do that though, because VDI.f is no longer a vector.