1 Pages (6 items)
Assign unit to a matrix element within a foor loop - Assign unit to a matrix element within a foor loop - Messages
#1 Posted: 6/10/2022 10:52:21 AM
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
#2 Posted: 6/10/2022 11:51:27 AM
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
#3 Posted: 6/10/2022 6:44:50 PM
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 KiB) downloaded 33 time(s).

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 KiB) downloaded 33 time(s).
2 users liked this post
#4 Posted: 6/11/2022 4:18:53 AM
Very smart use of multiplicative split of result display!
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 6/11/2022 9:34:30 AM
1 Pages (6 items)
-
New Posts
-
No New Posts