plotting wind direction V/S time in months (timeseries)
조회 수: 2 (최근 30일)
이전 댓글 표시
hi friends, i want to plot wind direction data that i have, the data is day wise and have seporate files for each year from 2007- 2013 , i have to plot in one plot....
댓글 수: 3
답변 (1개)
Hugo
2013년 6월 10일
Suppose you have the data in a matrix A, each row representing a measurement. The day would be in the first column and the direction of the wind in the sixth column. Then you can do:
plot(A(:,1),A(:,6));
set(gca,'YLim',[0,360]); % Range of angles
set(gca,'XTickLabel',[]);
for ind=1:size(A,1),
text(A(ind,1),-25,num2str(A(ind,1)),'Rotation',45,'VerticalAlignment','middle','HorizontalAlignment','center');
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!