How can I import unorganized mixed text data into a certain table format?
1 view (last 30 days)
Show older comments
I'm attempting to import text data in the following format:
a=1,b=2,c=3,ect...
How do I import the data so the resulting array/table is the following:
a b c ... 1 2 3
In other words, I want the variable names in the first row and the values in the second row.
I am considering following the document from http://www.mathworks.com/help/matlab/import_export/import-mixed-text-and-numeric-data-from-a-text-file.html
However, I don't know how I can change the variable 'formatSpec'
Thank you,
1 Comment
Image Analyst
on 15 Apr 2015
What happens when you try the formatspec they gave you?
formatSpec = '%C%{MM/dd/yyyy HH:mm}D%f%f%{MM/dd/yyyy HH:mm}D%C';
Answers (0)
See Also
Categories
Find more on Printing and Saving 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!