MATLAB Answers

Appending two tables of different sizes

9 ビュー (過去 30 日間)
Danielle Leblance
Danielle Leblance 2017 年 6 月 5 日
コメント済み: Peter Perkins 2017 年 6 月 6 日
I am matching two tables LC and Bordo using the year and the quarter columns that are common between the two. LC is a bigger table with more rows and columns. So I matched using the following:
[isinB, Brow]= ismember([LC.yy,LC.Quarter],[Bordo.Year,Bordo.quarter],'rows');
How can I append to LC table the part of Bordo table that matched based on year and quarter those in LC table?

  1 件のコメント

Peter Perkins
Peter Perkins 2017 年 6 月 6 日
Danielle, you're going to have to say specifically what you mean by "append". It sounds like maybe some kind of join operation, as Walter suggests. But a short example is what's needed.

サインイン to comment.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 5 日
innerjoin() perhaps ?

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by