how to use MATLAB units ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Karan Gill
il 10 Mar 2017
Modificato: Karan Gill
il 17 Ott 2017
Starting R2017a, units are available in MATLAB via Symbolic Math Toolbox. See:
Karan. (Symbolic doc)
[SL: fixed typo.]
0 Commenti
Più risposte (2)
Walter Roberson
il 10 Mar 2016
Other than switching to feval() syntax, No.
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!