フィルターのクリア

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 Center および File ExchangeVector Fields についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by