Importing data from txt file

2 vues (au cours des 30 derniers jours)
Iason
Iason le 5 Juin 2014
Commenté : Image Analyst le 6 Juin 2014
Hello I have a text file: attached
I would like to take the numerical values of the first and second column and put them in matrices T and A respectively.

Réponses (1)

Image Analyst
Image Analyst le 6 Juin 2014
t = readtable('chichi_triplos_katagrafh.txt');
or use dlmread();
  2 commentaires
Image Analyst
Image Analyst le 6 Juin 2014
lason's "Answer" moved here:
none of them is working
Image Analyst
Image Analyst le 6 Juin 2014
readtable is only there after R2013b. Try importdata
M = importdata(filename, '\t', 1)

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by