rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
matrix2str.m
1 function Mstr = matrix2str(M)
2 %function Mstr = matrix2str(M)
3 %
4 % function generating a string (matlab format) of a given double
5 % matrix M
6 
7 % Bernard Haasdonk 30.1.2009
8 
9 fstr = [repmat('%30.18d, ',1,size(M,2)-1),'%30.18d; ...\n'];
10 Mstr = ['[ ',sprintf(fstr,M'), '];'];%| \docupdate