MATLAB: Standard Unit of Matlab

unitunit conversion

I am trying to figure out the standard units of Matlab, for instance if I code mass=10, would the Matlab incorporate this as 10 kilgograms or grams?
Also, how would you put gravity into Matlab.
The only way to convert units that I figured out was to download the master m.files from the web and use it. However, is there another way such that I do not need other extra files?

Best Answer

It is a general feature of numerical software not to assume any specific units. For the computing it does not matter, if you add seconds, meters or dollars. This has the enormous advantage, that e.g. the same optimization routine can be applied to different fields as energy consumption of an engine or predator/prey systems in biology.