writing matlab result to a txt file

2 次查看(过去 30 天)
i produced an adjacency matrix in matlab, how i can write that to a txt file use as an input in R please?

采纳的回答

Renato Agurto
Renato Agurto 2015-12-17
Hi
Have you tried csvwrite?
csvwrite('myfile.txt', M);
I'm sure R can read csv files.
  2 个评论
fereshteh izadi
fereshteh izadi 2015-12-17
编辑:fereshteh izadi 2015-12-17
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 2015-12-18
yes, M is the matrix to be saved in the text file. Happy I could help.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by