Convert x into a rational approximation represented as a string.
The string can be converted 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.
If the length of the smallest possible rational approximation exceeds len, an asterisk (*) padded with spaces will be returned instead.
See also: format, rat.
Package: octave