how to export complete workspace data (containing objects, matrices, cells & structures) to one excel sheet ?
Show older comments
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 Comments
Rik
on 22 Apr 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
on 22 Apr 2022
Stephen23
on 22 Apr 2022
Rik
on 26 Apr 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?
Answers (1)
Walter Roberson
on 26 Apr 2022
0 votes
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 Comment
Walter Roberson
on 26 Apr 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?
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!