Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I add a line return to an uploaded text file?

1 次查看(过去 30 天)
I've uploaded a large .txt file containing the directories of all files of a desired file type. In the .txt file, every directory is on its own line. Once uploaded to Matlab however, the line returns are missing and I am left with a matrix of 1x2621385 char.
  4 个评论
Sara
Sara 2014-7-8
Try:
inventory= textscan(fileID,'%s %*[^\n]');
inventory = inventory{1};

回答(0 个)

此问题已关闭。

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by