MATLAB Answers


This question is closed. Reopen it to edit or answer.

Text document read into script

1 view (last 30 days)
xRobot on 19 Nov 2019
Closed: Adam Danz on 19 Nov 2019
I have a text document "mylist.odt" that contains one column of many words. The document is a word document. I would like to read it into my matlab script and ultimately have it as a string array. I have actually manged to read it in using fopen() and fscanf(). It reads it in as a 1x111022 char. I am having trouble converting it into a string array.
Any advice is greatly appeciated! Thanks in advance!


Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by