how to use MATLAB units ?
古いコメントを表示
I need to use units in Matlab
To use Matlab units i use Mupad like this:
aux1 = evalin(symengine,'unit::convert(2.1*unit::volt, unit::mvolt)')
Which returns
2100.0*unit::mvolt
Is there any way to use units beside this hack , which is quite annoying ...
採用された回答
その他の回答 (2 件)
Walter Roberson
2016 年 3 月 10 日
0 投票
Other than switching to feval() syntax, No.
5 件のコメント
timo
2016 年 3 月 13 日
Walter Roberson
2016 年 3 月 13 日
V = sym('unit::volt');
mV = sym('unit::mvolt');
aux1 = feval('symengine', 'unit::convert', 2.1 * V, mV)
timo
2016 年 3 月 14 日
Walter Roberson
2016 年 3 月 15 日
aux1 = feval(symengine, 'unit::convert', 2.1 * V, mV)
カテゴリ
ヘルプ センター および File Exchange で Utilities for the Solver についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!