This question is closed. Reopen it to edit or answer.
Can I write the output of a 'summary' command of a 'table'-variable to a variable ?
1 view (last 30 days)
Some answers about this were posted in 2015
I am using Matlab 2017 and the hack suggested does not seem to work. I have made a local copy of the summary function and incorporated the fid into every fprinf as instructed. By doing this (suggested by Guilaume) I reveice the following error:
Unrecognized variable name 'getProperty'.
GT on 11 Dec 2018
I believe as of R2017b you can do the following:
a = summary(tab)
This will return a structure with the information that summary typically prints to the command window. I am on R2018b and here is a small example:
a = rand(10,1)
b = table(a,a)
c = summary(b)
% returns the following
struct with fields:
Size: [10 1]
Would this be a reason to move to a newer release for you?