![]() ![]() Vectors where a dimension is a multiple of the same dimension in the other array.Īrrays with dimensions that are multiples of each other. # Examples of incompatible sizes: Description In other words - dimensions that appear in one array and do not appear in the other, are implicitly fit for automatic expansion.įor example, in MATLAB versions before R2016b this would happen:Īns = 9 3 9 4 7 10 5 11 5 # Examples of compatible sizes: Description Note that trailing singleton (that is, of size 1) dimensions are omitted by MATLAB, even though there's theoretically an infinite amount of them. Sizes are considered "compatible" when each dimension in one array is either exactly equal to the same dimension in the other array, or is equal to 1. The aforementioned binary operations are allowed between arrays, as long as they have "compatible sizes".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |