writing matlab result to a txt file

3 visualizaciones (últimos 30 días)
fereshteh izadi
fereshteh izadi el 17 de Dic. de 2015
Comentada: Renato Agurto el 18 de Dic. de 2015
i produced an adjacency matrix in matlab, how i can write that to a txt file use as an input in R please?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by