| Description |
Force MATLAB operators to behave BSXFUN-like, i.e. operate multi-dimensional array with automatic expansion. Here is an example:
>> bsxops(1) % Activate the bsxops mode
>> (1:3) + (4:5)'.*reshape([10 11],[1 1 2])
ans(:,:,1) =
41 42 43
51 52 53
ans(:,:,2) =
45 46 47
56 57 58
>> bsxops(0) % Compatible mode
>> (1:3) + (4:5)'.*reshape([10 11],[1 1 2])
??? Error using ==> times
Number of array dimensions must match for binary array op. |