Scatter plot
显示 更早的评论
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
2011-9-30
0 个投票
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
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!