Below is the code I'm running. It pulls in a text file that is delimited with a semicolon.
clc; clear;
filename = 'U0400_ALL_LOCS.txt';
delimiterIn = ';';
headerlinesIn = 1;
A = importdata(filename,delimiterIn); %,headerlinesIn);
The file is read into Matlab, but only sepeates rows, not columns. The picture below is of the variable A.
MATLAB HELP.PNG
Any idea on how to get these to split into their respective columns?

 Réponse acceptée

madhan ravi
madhan ravi le 30 Nov 2018
Try using readtable() to read the text file

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Produits

Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by