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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2015년 12월 17일

댓글:

2015년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by