how to use MATLAB units ?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
timo
el 10 de Mzo. de 2016
Editada: Karan Gill
el 17 de Oct. de 2017
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 comentarios
Respuesta aceptada
Karan Gill
el 10 de Mzo. de 2017
Editada: Karan Gill
el 17 de Oct. de 2017
Starting R2017a, units are available in MATLAB via Symbolic Math Toolbox. See:
Karan. (Symbolic doc)
[SL: fixed typo.]
0 comentarios
Más respuestas (2)
Walter Roberson
el 10 de Mzo. de 2016
Other than switching to feval() syntax, No.
5 comentarios
Walter Roberson
el 15 de Mzo. de 2016
aux1 = feval(symengine, 'unit::convert', 2.1 * V, mV)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!