Plot multiples time series
조회 수: 8 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
KSSV
2020년 8월 6일
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.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!