X axis of feather plot

조회 수: 9 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2013년 7월 1일
댓글: Vignesh Ramakrishnan 2022년 4월 23일
I plotted vector of wind velocity given by U and V , as
feather(U,V)
Is there a way to provide the x axis in such a way that I want to put the date on x - axis which so far I don't manage to do. Is there any alternative in having this? Am having trouble on this and any help is highly appreciated.

채택된 답변

Kelly Kearney
Kelly Kearney 2013년 7월 1일
Use quiver instead; it allows you to specify explicit x and y coordinates for each vextor:
quiver(date, zeros(size(U)), U, V);
  댓글 수: 7
Kelly Kearney
Kelly Kearney 2013년 7월 1일
Nope, still no idea. Let's try an example; this is the example data from the feather documentation; all I've done is add corresponding time data.
theta = (-90:10:90)*pi/180;
r = 2*ones(size(theta));
[u,v] = pol2cart(theta,r);
t = datenum(now) + (1:length(u));
quiver(t, zeros(size(u)), u, v);
set(gca, 'xtick', t(1:2:end));
datetick('keepticks');
So now, at each time along the x-axis, there is a vector showing the magnitude and direction of the data at that time. If you want something else, perhaps you can include a sketch or something? Otherwise, I guess we'll have to wait for someone else to chime in who possibly understands what you're asking.
Vignesh Ramakrishnan
Vignesh Ramakrishnan 2022년 4월 23일
Can we have a feather from an arbitrary line instead of the x-axis specifically?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by