Difference in outerjoin in R2015b and R2016a?

I have been encountering a difference in the functionality of outerjoin between R2015b and R2016a:
In R2016a, the following code runs as expected:
Table1 = table({'a';'b';'c'},[1;2;3],'VariableNames',{'Key','Value'});
Table2 = Table1([false, false false],:);
joined = outerjoin(Table2,Table1,'Key','Key','MergeKeys',1);
Resulting in joined being a 3x3 table that's like Table1 but with a column full of NaN.
In R2015b, however, I get
Error using table/outerjoin (line 152)
With two inputs, the first argument must be a vector. Use three-input syntax for matrices.
My question is twofold:
  1. What changed between the two versions to account for the difference in behavior?
  2. What can I do to consistently avoid this error?

 採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 20 日

0 投票

1 件のコメント

Joseph Andrews
Joseph Andrews 2018 年 1 月 22 日
Ah, thank you. This is helpful.

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

その他の回答 (0 件)

カテゴリ

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by