writing matlab result to a txt file

2 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
Hi
Have you tried csvwrite?
csvwrite('myfile.txt', M);
I'm sure R can read csv files.
  2 Comments
fereshteh izadi
fereshteh izadi on 17 Dec 2015
Edited: fereshteh izadi on 17 Dec 2015
sorry M is my adjacency matrix? i put M as my adjacency matrix and the result was written in txt file thank you
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)

Tags

Community Treasure Hunt

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

Start Hunting!