Scatter plot

조회 수: 6 (최근 30일)
Peyman
Peyman 2011년 9월 30일
I am trying to create a scatter plot but can't get around the problem without help. I have three categories and a set of scores from 0 to 10 in each category. The categories are 'mild', 'moderate', and 'severe' and each participant falls into one of these with a score from 0 to 10. So mild=[4;8;5;7;6....]; moderate=[4;6;7....] and so on.
I would like a to plot a scatterplot with the three categories on the x axis and the scores from 0-10 on the y axis and each score represented as a dot above the category name.
Can anyone help please?
Thanks

답변 (1개)

William
William 2011년 9월 30일
Try using a histogram N = HIST(Y,M) M = the number of bins in this case three. It will equally divide them up.
else you could use a simple case statement where "mild" = 1,2,3 "medium" = 4,5,6,7 "Strong" = 8 9 10 Catagorize them as 1 2 0r 3 according to the score and then try another histogram
Hope that helps

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by