delimit cells to columns with strings and numeric values
Show older comments
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.

Any idea on how to get these to split into their respective columns?
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!