Convert output from symbolic math (sym) to float

Matlab’s symbolic math toolbox contains a function called double.
This function converts the result of the solve function – which is a sym – to a double:

double(a)

ans =

      5.98921078320145
     0.834834535131742

Leave a Comment