How to combine multiple text files into one with index?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have five output txt files (Apple, Bean, Carrot, Tomato, and Orange) with one column and index as it shown below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149491/image.jpeg)
And now I need to combine this single column output file into multiple files as one output file in txt form and have the following output file with the following index and column:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149493/image.jpeg)
How can I do that?
0 commentaires
Réponses (1)
Jan
le 28 Sep 2015
At first load the data into cell arrays by reading one file after the other. Then create the output.
Well, a is very general answer. But simply try to start with importing one file and ask a specific question, if problems occur.
Voir également
Catégories
En savoir plus sur Cell Arrays dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!