Field of a structure
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
As Stephen Cobeldick helped me yesterday, I have a structure T consisting of 4 fields. I want to calculate the mean of each field in T.. Then I want all them to be written in an excel file. Thnx..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/357685/image.jpeg)
Risposta accettata
Più risposte (1)
madhan ravi
il 8 Set 2020
D = structfun(@mean, T);
writetable(table(D), 'Sample.xlsx') % or writematrix() as Stephen suggested
0 Commenti
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!