writing matlab result to a txt file

조회 수: 2 (최근 30일)
fereshteh izadi
fereshteh izadi 2015년 12월 17일
댓글: Renato Agurto 2015년 12월 18일
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개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by