How to read a text file and construct a matrix
Show older comments
Hi all,
I'd like to ask your help for a task I need to do.
I'm trying to read a text file with format as in the picture

and then create a matrix with 4 columns like the following

Please any advice-suggestion would be very welcome.
Cheers,
Dimi
3 Comments
Jan
on 17 Nov 2016
Matlab's matrices cannot contain numeric and string elements. Do you want a cell array? What have you tried so far? Which problems occurred?
Dimitrios Anagnostakis
on 17 Nov 2016
Dimitrios Anagnostakis
on 17 Nov 2016
Edited: Dimitrios Anagnostakis
on 17 Nov 2016
Answers (0)
Categories
Find more on Data Import and Export 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!
