How to correct the amplitude of the vectors displayed in a 2D-vector-field plot?

1 visualización (últimos 30 días)
Motivation: I want to plot a vector field where U and V are arbritrary coordinates
and x and y are the vector components at each U,V-coordinate pair.
WHAT I DID: For instance, let U run from 0 to 100 in steps of 10 and V be a constant number, for example 0.
I constructed an example of vector field and used the function quiver to plot as described below:
clear all;
close all;
U=[0 10 20 30 40 50 60 70 80 90];
V=[0 0 0 0 0 0 0 0 0 0];
x=[0 0 0 0 1 -1 2 -2 1 2];
y=[1 2 -1 -2 0 0 0 0 1 2];
Vector=[U' V' x' y'];
quiver(Vector(:,1),Vector(:,2),Vector(:,3),Vector(:,4))
axis([-10 110 -20 20])
PROBLEM: The Amplitudes of the vectors displayed in the graph are wrong!!! It rescales following a procedure that I don't understand. I already tried to solve by changing the separation along the U-coordinate or changing the plot range but it did not fix the problem.
QUESTION: I wonder if someone can tell me what command I need to add to plot display the vectors in the graph with the real amplitudes.
I thank you in advance for your help
Emerson

Respuesta aceptada

Malcolm Lidierth
Malcolm Lidierth el 14 de Oct. de 2011
Would setting scale to 0 help? See
doc quiver

Más respuestas (0)

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by