How to make a scatterplot

조회 수: 2 (최근 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?
  댓글 수: 2
jonas
jonas 2018년 10월 23일
what do you want on your axes?
Orongo
Orongo 2018년 10월 23일
see question.

댓글을 달려면 로그인하십시오.

채택된 답변

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에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by