The documentation and experimentation make it clear that I can do this to get the property values of an array of objects:
The question is how can I do the reverse without major use of subsasgn. For example I want to be able to do something like the following
I just can't seem to make that work. I have tried many different permutations but nothing seems to work. Does any on have any thoughts on how to make that work.
I have tried the following with no success:
[Object_Array(1:2).Property]=[10,20]; % suggestion from Stackoverflow [Object_Array(:).Property]=deal(Array_of_property_values_to_assign);