Info

この質問は閉じられています。 編集または回答するには再度開いてください。

2016b provides an answer to the operation [1 2 3 4 5].' + [1 2 3 4] whereas 2015b indicates 'Matrix dimensions must agree'. 2016b's behaviour is not clearly documented. Is it correct?

1 回表示 (過去 30 日間)
Craig
Craig 2016 年 6 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
2016b
a=1:5
a =
1 2 3 4 5
K>> b=1:4
b =
1 2 3 4
K>> a.' + b
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 29 日
You are using R2016a Preview, which had that (undocumented) behaviour as a test; it did not make it into R2016a official release.
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 6 月 29 日
Wait, are you using R2016a Preview, or R2016b Preview? What you describe was present in R2016a Preview and was removed for full release. If you are talking about R2016b Preview, then that is something that cannot be discussed here (the Non-Disclosure Agreement does not permit public discussion of the preview releases.)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by