Scatter plot

7 ビュー (過去 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 Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by