how can I plot a degree variable, a scalar and a date
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, so I got three variables: one gives me the direcction of the wind every half an hour, another one gives me the value of the wind every half an hour and finally one gives me the date of each information. How could I plot it to see the evolution of it every day? I upload the data I used.
댓글 수: 0
답변 (1개)
KSSV
2021년 12월 6일
load('DataRaval.mat')
load('Direcwind.mat')
load('Velwind.mat')
thedates = datestr(DataRaval) ;
theta = DirecVentRaval ;
W = VelVentRaval ;
u = W.*cosd(theta) ;
v = W.*sind(theta) ;
figure(1)
x = (1:length(u))' ;
y = ones(size(x)) ;
quiver(x,y,u,v) ;
xticklabels(thedates)
figure(2)
plot(x,W)
xticklabels(thedates)
댓글 수: 3
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!