MATLAB: Writing matlab result to a txt file matrix i produced an adjacency matrix in matlab, how i can write that to a txt file use as an input in R please? Best Answer HiHave you tried csvwrite? csvwrite('myfile.txt', M);I'm sure R can read csv files. Related SolutionsMATLAB: Writing into .txt file T = [v angle_random]; % this is if you want a 2-column filesave('random_cylind.txt','T','-ascii','-double'); % explore available options for "save" in Matlab documentation MATLAB: Write a matrix to a text file dlmwrite('file.txt',your_matrix)ordlmwrite('file.txt',your_matrix,'delimiter','\t','newline','pc') Related QuestionWriting cellArray to txt file.Writing maxtrix into a txt fileHow to write multiple txt files from workspace matrixWrite a matrix to txt file
Best Answer