フィルターのクリア

How to merge two lists of files?

17 ビュー (過去 30 日間)
Tomaszzz
Tomaszzz 2022 年 2 月 25 日
回答済み: Voss 2022 年 2 月 25 日
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?

採用された回答

Voss
Voss 2022 年 2 月 25 日
list_1 = dir();
list_2 = dir();
combined_list = [list_1; list_2];
disp(list_1);
2×1 struct array with fields: name folder date bytes isdir datenum
disp(list_2);
2×1 struct array with fields: name folder date bytes isdir datenum
disp(combined_list);
4×1 struct array with fields: name folder date bytes isdir datenum

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by