cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Matrices with unit

VG_10714868
8-Gravel

Matrices with unit

Hi,

I could not change Matrices output unit as deg.

I am using mathcad prime9

GSVP

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:VG_10714868)

Prime does not allow to set the unit for whole matrix because this would also mean to apply a unit to the first column which are text strings. You can't assign a unit to a string.

On the other hand Prime still does not allow to set units inside of a matrix (its not allowed in Prime 11 either) which is a feature request brought up quite often. Think of something like

Werner_E_0-1752212253473.png

We can only set the unit after the matrix and this would apply for ALL the values in the matrix, like

Werner_E_1-1752212311267.png

Not useful. We sure would need the option to set the units individually inside of the matrix and it would be nice if there would be an option to set the unit for a whole column or a whole row in one go. But I don't know it PTC has plans to implement that kind of improvement.

 

At the time you just can try to find a workaround and it depends on your need which way to go.

You could display each column of your matrix separately. Here its no problem to apply the unit deg to the second column:

Werner_E_2-1752212543072.png

Or you display the matrix but strip the unit, just showing the number representing the angle in degree:

Werner_E_3-1752212604722.png

You may add a third column with strings indicating the (pseudo)unit degree

Werner_E_4-1752212644375.png

Not really as nice as we would like it to be, but the best I could come up with.

 

Just for display purposes you may create a vector of strings like

Werner_E_0-1752213049181.png

 

It is only by chance that the strings here are somewhat the same length. There are no formatting options, you would have to program them yourself.

 

View solution in original post

2 REPLIES 2

image.png

Werner_E
25-Diamond I
(To:VG_10714868)

Prime does not allow to set the unit for whole matrix because this would also mean to apply a unit to the first column which are text strings. You can't assign a unit to a string.

On the other hand Prime still does not allow to set units inside of a matrix (its not allowed in Prime 11 either) which is a feature request brought up quite often. Think of something like

Werner_E_0-1752212253473.png

We can only set the unit after the matrix and this would apply for ALL the values in the matrix, like

Werner_E_1-1752212311267.png

Not useful. We sure would need the option to set the units individually inside of the matrix and it would be nice if there would be an option to set the unit for a whole column or a whole row in one go. But I don't know it PTC has plans to implement that kind of improvement.

 

At the time you just can try to find a workaround and it depends on your need which way to go.

You could display each column of your matrix separately. Here its no problem to apply the unit deg to the second column:

Werner_E_2-1752212543072.png

Or you display the matrix but strip the unit, just showing the number representing the angle in degree:

Werner_E_3-1752212604722.png

You may add a third column with strings indicating the (pseudo)unit degree

Werner_E_4-1752212644375.png

Not really as nice as we would like it to be, but the best I could come up with.

 

Just for display purposes you may create a vector of strings like

Werner_E_0-1752213049181.png

 

It is only by chance that the strings here are somewhat the same length. There are no formatting options, you would have to program them yourself.

 

Announcements

Top Tags