How to read a text file and construct a matrix
이전 댓글 표시
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
Jan
2016년 11월 17일
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
2016년 11월 17일
Dimitrios Anagnostakis
2016년 11월 17일
편집: Dimitrios Anagnostakis
2016년 11월 17일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

