1页(6条)
Assign unit to a matrix element within a foor loop - Assign unit to a matrix element within a foor loop - 消息
Hi all,
This is my first post in here.
I was wondering whether it is possible to change the unit of a matrix element within a for loop.
Here is a small example:

I would like to change for example the Current and Power unity to mA and mW respectively.
Thanks in advance
This is my first post in here.
I was wondering whether it is possible to change the unit of a matrix element within a for loop.
Here is a small example:

I would like to change for example the Current and Power unity to mA and mW respectively.
Thanks in advance
Watch this discussion (Razonar provided good suggestions)
https://en.smath.com/forum/yaf_postst18903_Units-not-simplified-in-Matrices.aspx
sergio
https://en.smath.com/forum/yaf_postst18903_Units-not-simplified-in-Matrices.aspx
sergio
Subjectively better looking version for Razonar's example.
Not very practical though, need to re-write for every new units.
I think this should be a feature, using a matrix units for matrix output.
This is how I wrote a pseudo 'matrix looking like' variable.
'\005B\ohm\0020\mA\0020\μV\005D\
Rest is copy paste to place holders.
Regards
matrixunits.sm (3.49 KiB)已下载 1292 次。

Not very practical though, need to re-write for every new units.
I think this should be a feature, using a matrix units for matrix output.
This is how I wrote a pseudo 'matrix looking like' variable.
'\005B\ohm\0020\mA\0020\μV\005D\
Rest is copy paste to place holders.
Regards
matrixunits.sm (3.49 KiB)已下载 1292 次。

2位用户喜欢此帖子
Very smart use of multiplicative split of result display!
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1页(6条)
- 有新帖
- 无新帖
