Scatter plot
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
William
am 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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!