Save Struct to Excel file
    14 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Tim Fabian Zimmermann
 il 26 Ott 2021
  
    
    
    
    
    Risposto: Tim Fabian Zimmermann
 il 26 Ott 2021
            Hey There,
im doing fricntion tests at my institute for my thesis and i have a struct which and i tried everything to save it as an .xlsx excel-file
Here is one way i tried:
fname_11 = '/Excel/Alle_Ergebnisse.xlsx';
writetable(struct2table(summary), [pwd fname_11]);
the struct is in my workplace like u can see in the screenshot. 

i tried https://de.mathworks.com/matlabcentral/answers/490251-use-a-string-as-a-struct-name and https://de.mathworks.com/matlabcentral/answers/258880-how-to-save-struct-data-from-struct-to-excel
and nothing worked. Does anyone has a clue how i can solve it? Im still new to Matlab, so sorry for the inconvinience. 
2 Commenti
  Matt J
      
      
 il 26 Ott 2021
				What do you mean it didn't work? What happened with writetable when you tried it?
Risposta accettata
Più risposte (1)
  Can Atalay
      
 il 26 Ott 2021
        
      Modificato: Can Atalay
      
 il 26 Ott 2021
  
      Since you said you were new I'm assuming you couldn't extract the tables before writing to an excel file. For instance you could access the tables using
v_7_temp = summary.v7vc10fn122;
class(v_7_temp)
and write the table to an excel file as usual. 
How do you want the excel file result to look like though? A clickable cell that opens up multiple files or just a simple table view? 
3 Commenti
  Can Atalay
      
 il 26 Ott 2021
				I don't work with excel files often so I'm not sure I understand what you're after. Maybe if you attached a hand drawing of what the xls file should look like and explain it like I'm a 3 year old I may be able to help :P sorry
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!

