how can join two tables based on specific values with repetitions?

1 回表示 (過去 30 日間)
EM geo
EM geo 2019 年 3 月 7 日
コメント済み: tmarske 2019 年 3 月 7 日
I want to join the two table attached based on all the values in the column called 'idstop' of the table T_equo. How can i do?
I wrote this code but it give me this error: "Error using tabular/join (line 130) Unrecognized variable name 'idstop'."
join(T_equo, T_schmidt, 'Keys', {'idstop'})
Tnks in advance
  1 件のコメント
tmarske
tmarske 2019 年 3 月 7 日
If you give only a single 'Keys' parameter, then the variable name you give must exist in both tables. Here idstop exists only in T_equo, hence the error.
If you want to join two tables based on key columns with different names, you need to specify them using the 'LeftKeys' and 'RightKeys' parameters.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by