Single extension not everywhere?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Paul
2022-3-29
The linked blog post does not show assignment (=) included uder "Supported Operators and Functions." It still isn't:
doc bsxfun
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Testing Frameworks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!