Function Reference
— Built-in Function: rats (x, len)

Convert x into a rational approximation represented as a string. You can convert the string back into a matrix as follows:

            r = rats(hilb(4));
            x = str2num(r)

The optional second argument defines the maximum length of the string representing the elements of x. By default len is 9.

See also: format rat