MATLAB: How to export numerical values to ASCII format

MATLAB

Actually I am having a hard time to do it. I use R nowadays i forgot how to export my data in matlab. I searched and I could not find a way to do it.
I tried
save('TheNameYouwant.txt','TheNameOfFile', '-ascii');
but this is not what I want. I want to have the output as Tab Delimited text

Best Answer

Try dlmwrite
dlmwrite('TheFileNameYouWant.txt', yourMatrix, '\t');