Plot two categorical columns from a table

4 visualizaciones (últimos 30 días)
mustard26
mustard26 el 11 de Abr. de 2018
Respondida: Peter Perkins el 13 de Abr. de 2018
I have this table
I am trying to plot column 4 and 7 on a graph, however they are not numerical values.
I want to see if theres' a correlation between the two.
Is there any way to do this?
  2 comentarios
KSSV
KSSV el 12 de Abr. de 2018
How you can get correlation among a string and number?
Peter Perkins
Peter Perkins el 13 de Abr. de 2018
Two strings, actually. Everything in the table(?) is text.

Iniciar sesión para comentar.

Respuestas (1)

Peter Perkins
Peter Perkins el 13 de Abr. de 2018
The question you are asking seems like you need to think in terms of contingency tables. The Statistics Toolbox has some tools to work with those.
The onl;y plot I know of for categorical vs. categorical is called a mosaic plot. I believe there's an implementation on the File Exchange.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by