I have an array (365 , 40), Every column contains 365 records of a variable, each record corresponds to a day. And there are 40 years of data so every column contains data for a year. I need to plot the 40 time series in the same graph.

답변 (1개)

KSSV
KSSV 2020년 8월 6일

0 개 추천

Let A be your 365*40 data.
Multiple options.
plot(A)
The above options plots 40 curves in one graph. It will be confusing.
for i = 1:40
subplot(40,1,i)
plot(A(:,i))
end
The above plots 40 subplots. May not look good.
pcolor(A)
shading intepr
colorbar
The above plots a nice colorbar plot.

댓글 수: 1

Maria Hernandez
Maria Hernandez 2020년 8월 11일
The lines of the chart looks sharper after using the shading interpreter sentence. However since I must use a lines plot the colormap is not useful.

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

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 8월 6일

댓글:

2020년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by