필터 지우기
필터 지우기

How to change the Head Properties of a vector?

조회 수: 3 (최근 30일)
Emerson De Souza
Emerson De Souza 2011년 10월 20일
I want to change the HeadProperties of a vector.
In the example below I show the problems:
SCRIPT:
clear all;
close all;
U=[1 2 3 4 5 6 7 8 9 10];
V=[0 0 0 0 0 0 0 0 0 0];
x=[-0.35 -0.37 -0.38 -0.40 -0.40 -0.41 -0.41 -0.42 -0.42 -0.417];
y=[-0.11 -0.10 -0.09 -0.08 -0.06 -0.04 -0.02 0.001 0.024 0.047];
Vector=[U' V' x' y'];
quiver(Vector(:,1), Vector(:,2), Vector(:,3), Vector(:,4), 0, 'LineWidth', 1, 'MaxHeadSize', .1);
axis([0 11 -0.2 0.2])
PROBLEMS
First, the vector heads are opened ones and I want to have solid heads.
Second, the head is not symmetric relative to solid line, but it changes its property with direction. I wand to have
symmetric sides for any vector direction.
Third, the function MaxHeadSize is not working and I don't know why.
I already look in the documentation for vector plot, quiver, etc... and did not find the instructions. I wonder if someone is familiar with this problem and could help me.
Thanks in advance for your attention
Emerson
[EDITED, JSimon, 20-Oct-2011 11:33 UTC, Code formatted]
  댓글 수: 1
Jan
Jan 2011년 10월 20일
Please use code formatting as explained at the "Markup help" link on this page.
About the useless "clear all" see: http://www.mathworks.com/matlabcentral/answers/16484-good-programming-practice#answer_22301

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

채택된 답변

Jan
Jan 2011년 10월 20일

추가 답변 (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