writing matlab result to a txt file

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

Hi
Have you tried csvwrite?
csvwrite('myfile.txt', M);
I'm sure R can read csv files.

2 Comments

sorry M is my adjacency matrix? i put M as my adjacency matrix and the result was written in txt file thank you
yes, M is the matrix to be saved in the text file. Happy I could help.

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!