writing matlab result to a txt file

2 vues (au cours des 30 derniers jours)
fereshteh izadi
fereshteh izadi le 17 Déc 2015
Commenté : Renato Agurto le 18 Déc 2015
i produced an adjacency matrix in matlab, how i can write that to a txt file use as an input in R please?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by