Extract data from structures for multiple files
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
HI,
I have 2 cells each 2560*1. One cell(file_name) contains all the structure names in second cell (data). Each structure contains a sub structure, this substructure contain a double at 3rd row and 7th column(or 7th field).
I want to extract that double and take mean and create a table such that file names and the mean of each file double are contactenated.
The order of the file name and data are same and all structure files in Data have same sub structure field name. Lets say I have file name "MA101", and in "data" cell I have its structure (1x1 struct). Having a sub structure with 4 fields and I want to extract field named "Y"(which is same for all cases) which is a 1x7 struct with desired double at 3rd row and 7th column.
I recently started learning matlab and it would be very helpful if someone tells me how to create a loop.
Thank you.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!