Single extension not everywhere?

According to the following page, MATLAB 2019a should have automatic singleton extension:
My tests show that this is not always true:
% A test array
>> x=false(3,3)
3×3 logical array
0 0 0
0 0 0
0 0 0
% Singleton extension works
>> x([1 3],2)=true
3×3 logical array
0 1 0
0 0 0
0 1 0
% Singleton extension doesn't work
>> x([1 3],2:3)=[true true]
Unable to perform assignment because the size of the left
side is 2-by-2 and the size of the right side is 1-by-2.

 採用された回答

Paul
Paul 2022 年 3 月 29 日

0 投票

The linked blog post does not show assignment (=) included uder "Supported Operators and Functions." It still isn't:
doc bsxfun

1 件のコメント

FM
FM 2022 年 3 月 29 日
OK, thanks. I will code around its absence. Pity, it would streamline the code.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

製品

リリース

R2019a

質問済み:

FM
2022 年 3 月 29 日

コメント済み:

FM
2022 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by