Imagine a simple array of structures, for example:
A = struct('x', {1 2 3}, 'y', {'a' 'b' 'c'});
A request for a given property for all of these array elements will yield the following:
>> A.x
ans =
1
ans =
2
ans =
3
Now, if I explicitly call the subsref function directly in this array, it only retrieves the first property of the element:
>> builtin('subsref', A, substruct('.', 'x'))
ans =
1
Why? Is it possible to call an explicitly different built-in method that will retrieve the property for all elements of the array?
user4899691
source
share