The num2str function converts numbers to their string representations. This function is useful for labeling and titling plots with numeric values. str = num2str(A) str = num2str(A,precision) str = num2str(A,format)