how to export complete workspace data (containing objects, matrices, cells & structures) to one excel sheet ?
Mostrar comentarios más antiguos
My workspace data consists of objects, cell array, structures and matrices .. and I am unable to write or export all these in one excel sheet.
Is there any command or simple code for this ?
I am trying to develop code for undistorted fisheye image . As shown in below pic for the workspace I want to export all the variables , the object ( cameraParams) and their values to xlsx. How do I do that ?


4 comentarios
Rik
el 22 de Abr. de 2022
What exactly would you like to achieve? Are there specific variables you're looking for? Do you want to store variables as a checkpoint? Do you simply want a data dump?
This question sounds like you want to do something, but you are assuming a solution that may be suboptimal.
anisha xyz
el 22 de Abr. de 2022
Stephen23
el 22 de Abr. de 2022
Rik
el 26 de Abr. de 2022
There are builtin tools to save matrices to Excel. So what you need to do is to decide how you want to show each property in Excel.
What have you tried so far to do that?
Respuestas (1)
Walter Roberson
el 26 de Abr. de 2022
0 votos
No there is no simple way to do that. There is no complicated way to do it either. Excel lacks the capacity to represent hierarchy of structured data within a single sheet.
1 comentario
Walter Roberson
el 26 de Abr. de 2022
json can help.
https://www.howtogeek.com/775651/how-to-convert-a-json-file-to-microsoft-excel/
However you will need to convert the objects to a different form, possibly by using struct()
... Does the person truly need the complete list of file names from the datastore? Fully qualified names?
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!