MATLAB: How can i export a data to tab (10 character space) separated text file…

export data text .txt matrix tab

I have a n*m matrix at matlab and i need to export them to a txt file and it is important to have 2 features:
1- data should be separated by tab(\t)
2- they have to be scientific number with 8 number precision at this format 0.00000000

Best Answer

A=rand(4)
dlmwrite('myfile.txt', A, 'precision', '%.8f','newline', 'pc','delimiter','\t')