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에서 Vector Fields에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by