matlab - Opening address stored in cell aaray and the concat the strings -


Suppose that there are five text files content of the files text file 1 = I saw a crocodile, text file 2 = crocodile near a tree Was sitting, textfile 3 = crocodile was sleeping, textfile 4 = parrot was flying, textfile 5 = parrot was flying.
I have stored the address for each file, how to open a cell-array of those addresses, and then insert the stars to create a single cell-array.

If you have a cell array that you can use to say files:

  txt = cell (0); I = for 1: length (files) txt = [txt, fileread (files {i})]; End  

In the cell array txt , the same number of elements will be in the same form as files and each element will keep the text from that file < / P>


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -