How to save statitiscs displayed in workspace as text file?
4 views (last 30 days)
Matt Tearle on 20 Apr 2011
Do you mean you want a list of variable names, sizes, classes, bytes used,...? If so, you could do vars = whos, then save/write the result.
EDIT TO ADD:
To write to a text file
fid = fopen('variable.log','wt');
vars = whos
fprintf(fid,'%s %s %s %u\n',...
BUT, if the default output from whos is what you want, the simplest approach is probably: