How to merge two lists of files?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all,
I have two list of files (4x1 struct) likes this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/906915/image.png)
I would like the output to be the two lists merged in this way:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/906920/image.png)
Can you help?
0 commentaires
Réponse acceptée
Voss
le 25 Fév 2022
list_1 = dir();
list_2 = dir();
combined_list = [list_1; list_2];
disp(list_1);
disp(list_2);
disp(combined_list);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!