Plot two categorical columns from a table

3 次查看(过去 30 天)
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 个评论
KSSV
KSSV 2018-4-12
How you can get correlation among a string and number?
Peter Perkins
Peter Perkins 2018-4-13
Two strings, actually. Everything in the table(?) is text.

请先登录,再进行评论。

回答(1 个)

Peter Perkins
Peter Perkins 2018-4-13
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.

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by