MATLAB: Format for decimal numbers and no fractional

format decimal

How i can obtain results in decimal format and not in fractional format?
I am using matlab for direct knematic, for example :
For a matrix I expect the following result: A12 =
[ 0, 0, 1, 0]
[ 1, 0, 0, 0]
[ 0, 1, 0, d2]
[ 0, 0, 0, 1]
but matlab show : A12 =
[0, -4967757600021511/81129638414606681695789005144064, 1, 0]
[ 1, 0, 0, 0]
[ 0, 1,4967757600021511/81129638414606681695789005144064, d2]
[ 0, 0, 0, 1]
where i expect a 0 i have a fractional number 4967757600021511/81129638414606681695789005144064

Best Answer

I suggest you read
doc format
for complete info on how MATLAB displays to the command window.
If you mean something else, please add more detail to your question, which is very imprecise.