how to use MATLAB units ?
조회 수: 3 (최근 30일)
이전 댓글 표시
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 ...
댓글 수: 0
채택된 답변
Karan Gill
2017년 3월 10일
편집: Karan Gill
2017년 10월 17일
Starting R2017a, units are available in MATLAB via Symbolic Math Toolbox. See:
Karan. (Symbolic doc)
[SL: fixed typo.]
댓글 수: 0
추가 답변 (2개)
Walter Roberson
2016년 3월 10일
Other than switching to feval() syntax, No.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!