MATLAB Answers

Luca
0

unitconv do not work

Asked by Luca
on 12 Nov 2018
Latest activity Edited by madhan ravi
on 13 Nov 2018
syms x y
u = symunit;
b=70*u.millim;
h=60*u.millim;
t=1*u.millim;
%trave ad C
Ixx=simplify(mom_inerzia_x(b,h,t),4);
Ixx= unitconv(Ixx,u.mm,u.m)
Ixx =
(2102447/4)*[mm]^4
>> Esercizio_Ordinata_centro_di_taglio
Ixx =
(2102447/4)*[mm]^4
Why function don't convert from millimeter to meter?

  1 Comment

madhan ravi
on 12 Nov 2018
see my answer below

Sign in to comment.

2 Answers

madhan ravi
Answer by madhan ravi
on 12 Nov 2018
Edited by madhan ravi
on 12 Nov 2018

It's unitConvert not unitconv
Ixx= unitConvert(Ixx,u.m)

  4 Comments

Show 1 older comment
madhan ravi
on 13 Nov 2018
which version of matlab are you using?
Luca
on 13 Nov 2018
2018a
madhan ravi
on 13 Nov 2018
I am using 2018b and it work fine for me , note : it requires symbolic toolbox

Sign in to comment.


Luca
Answer by Luca
on 12 Nov 2018

If I use unitconvert, matlab leave an error, function don't exist.

  0 Comments

Sign in to comment.