I have this struct:
A(1).B.C = 'a';A(2).B.C = 'b';A(3).B.C = 'a';
When I execute the code below, it works
A(:).B
However, when I execute the code below, it throws an error: “Expected one output from a curly brace or dot indexing expression, but there were 4 results.”
A(:).B.C
WHY do I get this error and MATLAB avoids executing this code?
Best Answer