How to make a scatterplot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Orongo
el 23 de Oct. de 2018
Comentada: Orongo
el 23 de Oct. de 2018
Hi, I have a large set of residual data (10x10000) with ages 61:70 (by row). I would like to plot the residuals looking like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192363/image.png)
with residuals on y-axis and ages on x-axis. How can I make this?
2 comentarios
Respuesta aceptada
jonas
el 23 de Oct. de 2018
Editada: jonas
el 23 de Oct. de 2018
Let Y be your matrix with data, you can simply make a scatterplot like this:
x = 61:70;
h = plot(x,Y,'bo','markerfacecolor,'b')
but considering you have so much data in discrete intervals (age) I would propose that you look into other options like boxplot
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!