How to make a scatterplot

1 次查看(过去 30 天)
Orongo
Orongo 2018-10-23
评论: Orongo 2018-10-23
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
with residuals on y-axis and ages on x-axis. How can I make this?

采纳的回答

jonas
jonas 2018-10-23
编辑:jonas 2018-10-23
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 个评论
jonas
jonas 2018-10-23
I've updated the answer.
Orongo
Orongo 2018-10-23
Thanks it works perfect!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Data Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by