How to merge two lists of files?
15 views (last 30 days)
Show older comments
Hi all,
I have two list of files (4x1 struct) likes this:
I would like the output to be the two lists merged in this way:
Can you help?
0 Comments
Accepted Answer
Voss
on 25 Feb 2022
list_1 = dir();
list_2 = dir();
combined_list = [list_1; list_2];
disp(list_1);
disp(list_2);
disp(combined_list);
0 Comments
More Answers (0)
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!