MATLAB: How to get mathematical answer as a whole number instead of numerator and denomintor

linear algebramathematics

I am calculating the co-ordinates and I am getting the answers as xL1 =
2232746079664914432/16414873036725325
-5183899564262633692302747613221/36096687544692468638705254400
I want the answer as a whole number like the below:
136.0197
-143.6115
instead of that fraction form. How do I get it?

Best Answer

See the documentation for vpa and double (link at the end of the vpa page).