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

조회 수: 2(최근 30일)
Emerson De Souza 2011년 10월 14일
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.
Emerson

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

### 채택된 답변

Malcolm Lidierth 2011년 10월 14일
Would setting scale to 0 help? See
doc quiver

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

### Community Treasure Hunt

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

Start Hunting!