Query regarding Quiver plot

Dear all,
I have data (distance, frequency, arrow amplitude and direction) at several stations along a profile. I want to make induction arrows pseudosection (Distance vs frequency and corresponding arrow behaviour). I used quiver command in matlab. Here, my y axis in log scale and x axis is normal. I am unable get arrows in a proper manner. Kindly guide me.
Thanking you
Vijay

Respuestas (1)

KSSV
KSSV el 15 de Jun. de 2022

0 votos

Get the components first and then use quiver.
u = amplitude.*cos(direction) ; % be cautious of units of direction/ angle
v = amplitude.*sin(direction) ;
quiver(distance, frequency, u,v)

1 comentario

Vijayakumar Pachigolla
Vijayakumar Pachigolla el 15 de Jun. de 2022
Dear KSSV,
Thank you for your quick response.
I have already used in the following way
u = AmpliR .* cos(thetaR);
v = AmpliR .* sin(thetaR);
quiver(repmat(x(p,1),length(freq1),1),1./freq1,u,v);
set(gca,'YScale','log');
set(gca,'Ydir','reverse');
ylim([0.001,1000])
set(gca,'YTick', [0.001,0.01,0.1,1,10^1,10^2,10^3,10^4,10^5]);
My frequency is in log scale. But, I am unable to get log scale. If I use 'Y scale' in log. the following error is coming.
Warning: Error updating Quiver.
DataSpace or ColorSpace transform method failed.
Kindly help me in this regard.
Thanking you
Vijay

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Preguntada:

el 15 de Jun. de 2022

Comentada:

el 15 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by