How to combine two pairs of arrays (input and output) into one that is the union between both inputs but keeps both outputs referenced to the same data of its input before the union?

2 ビュー (過去 30 日間)
Arthur
Arthur 2017 年 3 月 31 日
コメント済み: Rik 2017 年 3 月 31 日
Suppose that I have these two matrix (each one a pair of in-output data): [x f(x)] and [y f(y)]. The array x and y measure the same variable but they are displaced by an offset. The objective is to unite both input variables x and y into a single array (xUy - x union y) but keep its outputs f(x) and f(y) referenced to the same points that they were with x and y.
Is there a function to it? Can I do it through the 'union' command?
  2 件のコメント
the cyclist
the cyclist 2017 年 3 月 31 日
How are the data stored? Can you give a small example of inputs and expected output?
Rik
Rik 2017 年 3 月 31 日
Can't you just concatenate them and use unique to get the unique rows?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by