union multiple arrays (more than two)

47 ビュー (過去 30 日間)
Ioannis Vourvachakis
Ioannis Vourvachakis 2021 年 10 月 31 日
コメント済み: Ioannis Vourvachakis 2021 年 10 月 31 日
I want to union more than two arrays. Thank you

採用された回答

Matt J
Matt J 2021 年 10 月 31 日
編集済み: Matt J 2021 年 10 月 31 日
The obvious way it so use a loop,
U=arrays{1}; %cell array containing arrays
for i=2:N
U=union(U,array{i});
end
Are you asking if there is a way that doesn't use a loop? No, I don't believe there is.
  1 件のコメント
Ioannis Vourvachakis
Ioannis Vourvachakis 2021 年 10 月 31 日
That I was asking about, I just found it. Thank you for your response anyway!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by