transfer a table into a text file

13 vues (au cours des 30 derniers jours)
me
me le 7 Nov 2015
Commenté : Geoff Hayes le 8 Nov 2015
I have converted the cell of different data types(char, string, double) into a table; dose anyone know how I can transfer the table into a text file.

Réponses (1)

Geoff Hayes
Geoff Hayes le 7 Nov 2015
me - try using writetable which will write the table to a comma delimited file.
  2 commentaires
me
me le 8 Nov 2015
the table can be seen to the right, and the error I get when using writetable can be seen in the C.W.. Do you have any other suggestions?
Geoff Hayes
Geoff Hayes le 8 Nov 2015
The second input parameter to writetable is the name of (and path to) a file, not a file descriptor. Try
writetable(GPS_Data,'myFile.txt');

Connectez-vous pour commenter.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by