%% Rational Representation of Matrix
% Create a 4-by-4 matrix.

format short
X = hilb(4)

%
% View the rational representation of the matrix using rats. The result is the same as using format rat.

R = rats(X)

% Copyright 2012 The MathWorks, Inc.