フィルターのクリア

innerjoin invalid parameter name

1 回表示 (過去 30 日間)
Wesso
Wesso 2019 年 2 月 15 日
編集済み: Matt J 2019 年 2 月 15 日
Hi,
I want to match table A with table B (they have different size) and I want to produce table C that keeps only the common rows.
A has the following variables 'DateAnnounced','TargetName',AcquirorName' that I want to match with the following variables from B:''DateAnnouncedb','TargetNameb','AcquirorFullName' respectively.
So I wrote the following codes:
C=innerjoin(A,B,'DateAnnounced','DateAnnouncedb','TargetName','TargetNameb','AcquirorName','AcquirorFullName','LeftKeys',3,'RightKeys',3)
I received however the following error:
Error using tabular/innerjoin (line 94)
Invalid parameter name: DateAnnounced.
It is the first time I use innerjoin. Is my logic correct? if so why am I receiving the error?

採用された回答

Matt J
Matt J 2019 年 2 月 15 日
編集済み: Matt J 2019 年 2 月 15 日
It appears that you are attempting to do the following:
Akeys={'DateAnnounced','TargetName','AcquirorName'};
Bkeys={'DateAnnouncedb','TargetNameb','AcquirorFullName'};
C=innerjoin(A,B,'LeftKeys',Akeys, 'RightKeys',Bkeys);

その他の回答 (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