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 Kommentare

jonas
jonas am 23 Okt. 2018
what do you want on your axes?
Orongo
Orongo am 23 Okt. 2018
see question.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

jonas
jonas am 23 Okt. 2018
Bearbeitet: jonas am 23 Okt. 2018

0 Stimmen

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 Kommentare

Orongo
Orongo am 23 Okt. 2018
thanks, however I get lines instead of desired 'o'. I tried scatter(x,Y) and scatterplot(x,Y) but no luck. Scatter gives following error 'X and Y must be vectors of the same length.' and scatterplot 'Operands to the and && operators must be convertible to logical scalar values.'.
jonas
jonas am 23 Okt. 2018
I've updated the answer.
Orongo
Orongo am 23 Okt. 2018
Thanks it works perfect!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 23 Okt. 2018

Kommentiert:

am 23 Okt. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by