Can I rewrite 'summary' command for categorical variable?
Mostrar comentarios más antiguos
I need the output of 'summary' command in table format. I tried to rewrite the 'summary' command codes in local copy of it but i have some error that does not let me use it. The error returns to 'subsref.m' function that has to parameters (subsref(a,s)), a is the categorical variable and s is a structure with the fields:
type -- string containing '()' specifying the subscript type.
Only parenthesis subscripting is allowed.
subs -- Cell array or string containing the actual subscripts.
Error reason is that s.type is .(dot) in my local copy named summaryFun!!
How can i fix it?
5 comentarios
kiarash Dousti
el 28 de Mzo. de 2016
Walter Roberson
el 28 de Mzo. de 2016
You could parse the result of the evalc(), potentially.
kiarash Dousti
el 28 de Mzo. de 2016
Editada: kiarash Dousti
el 28 de Mzo. de 2016
Walter Roberson
el 28 de Mzo. de 2016
regexp(), strsplit(), sscanf() -- there are a lot of different ways to parse a char array.
kiarash Dousti
el 28 de Mzo. de 2016
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
