How to extract data from a cell array which contains structs?
Show older comments
Hi all,
I have the following problem: I have a cell array which contains in each cell a certain struct (structs have the same fields but different information). Suppose a certain field contain numbers. I want to create an array from all the numbers of this field from all the structs in the cell array. I can do this with a for loop but I guess there should be a better and a faster way. I tried to do it using 'deal' but failed.
Is there a better way?
Thanks, Alon
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!