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

1 次查看(过去 30 天)
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

采纳的回答

Malcolm Lidierth
Malcolm Lidierth 2011-10-14
Would setting scale to 0 help? See
doc quiver

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by