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.

 Respuesta aceptada

Kelly Kearney
Kelly Kearney el 1 de Jul. de 2013

0 votos

Use quiver instead; it allows you to specify explicit x and y coordinates for each vextor:
quiver(date, zeros(size(U)), U, V);

7 comentarios

Ede gerlderlands
Ede gerlderlands el 1 de Jul. de 2013
Yes I can . Is there a way to show the magnitude of the vector other than the length of the lines in quiver plots?
Kelly Kearney
Kelly Kearney el 1 de Jul. de 2013
Not quite sure what you mean... do you want to add something else to the plot (like color, perhaps)? Or do you want to replace the quiver/feather plot with an entirely different style of plot?
Ede gerlderlands
Ede gerlderlands el 1 de Jul. de 2013
I mean I want to plot the magnitude of the vector superimposed on the flow vector . Is that possible to do?
Kelly Kearney
Kelly Kearney el 1 de Jul. de 2013
Still not clear. The quiver plot is showing the magnitude and direction of whatever your U and V represent, which I'm assuming in your case is the flow. If you need something else, you're going to have to explain your data in more detail.
Ede gerlderlands
Ede gerlderlands el 1 de Jul. de 2013
Yes, quiver shows the magnitude of a vector by the length of it arrow. What am saying is that if it is possible to draw the magnituden of the vectors at each time plus the direction of the vector for the corresponding magnnitude. . I don't know if am that clear
Kelly Kearney
Kelly Kearney el 1 de Jul. de 2013
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 el 23 de Abr. de 2022
Can we have a feather from an arbitrary line instead of the x-axis specifically?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Vector Fields en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by