How to export the workspace variable INFORMATION, such as Name, Value, Bytes, Class.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lionel Trébuchon
le 17 Oct 2017
Commenté : Lionel Trébuchon
le 17 Oct 2017
I would like to find a way to export the description of my workspace. In the MATLAB IDE Workspace description, I find the "Bytes" field particularly informative.
I obtain something close to what I want when I type into the command line:
whos
However, I cannot properly store the output by copy-pasting it into a spreadsheet. If I could save the data listed by whos, it would be useful to search by Class, Size or Name. And doesn't need the disk space that is involved with a
save
in case of big files.
0 commentaires
Réponse acceptée
Sean de Wolski
le 17 Oct 2017
S = whos;
T = cell2table(struct2cell(S)','VariableNames', matlab.lang.makeValidName(fieldnames(S)));
writetable(T,'whatever.xlsx')
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!