Plot two categorical columns from a table

조회 수: 4 (최근 30일)
mustard26
mustard26 2018년 4월 11일
답변: Peter Perkins 2018년 4월 13일
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