%% Specify Precision
% Convert a numeric matrix to a character vector, to three digits of precision.

chr = mat2str([3.1416 2.7183],3)

% Copyright 2012 The MathWorks, Inc.