Scatter plot

7 views (last 30 days)
Peyman
Peyman on 30 Sep 2011
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

Answers (1)

William
William on 30 Sep 2011
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

Community Treasure Hunt

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

Start Hunting!