writing matlab result to a txt file

4 views (last 30 days)
i produced an adjacency matrix in matlab, how i can write that to a txt file use as an input in R please?

Accepted Answer

Renato Agurto
Renato Agurto on 17 Dec 2015
Have you tried csvwrite?
csvwrite('myfile.txt', M);
I'm sure R can read csv files.
Renato Agurto
Renato Agurto on 18 Dec 2015
yes, M is the matrix to be saved in the text file. Happy I could help.

Sign in to comment.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!