How to save workspace variables and values a s binary file
Show older comments
I wrote a code and want to save all workspace's variables and their values as a .txt file or other formats as a binary file just to print them out. Note I need both variable names and values.
4 Comments
Walter Roberson
on 4 Mar 2018
This can be tricky when you start getting into graphics objects, or cell arrays, or non-scalar struct especially if not all the descendants have the same fields... And how would you like arrays with 3 or more dimensions to be output?
Mos_bad
on 4 Mar 2018
Walter Roberson
on 5 Mar 2018
Are all of the variables pure numeric? Are they all row vectors? Are some of them 2D arrays? Are some of them 3D arrays?
Mos_bad
on 5 Mar 2018
Accepted Answer
More Answers (0)
Categories
Find more on Whos 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!