Be the first to rate this file! 2 Downloads (last 30 days) File Size: 929 Bytes File ID: #14474

addrefarrow.m

by Robert Moucha

 

29 Mar 2007 (Updated 01 Apr 2007)

Add a reference arrow to 2D quiver plot

| Watch this File

File Information
Description

% addrefarrow(h,x,y,u,v)
%
% This is a quick hack to add a scale/reference arrow at a desired position
% given by the input argument (x,y). The scale arrow length in the x
% direction is given by u, in the y direction by v.
%
% WARNING, this function modifies the data contained in the quiver graphics
% group handle h!

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
04 Apr 2007 Robert Moucha

In order for this to work, you must create the quiver plot using;

hq = quiver(X,Y,U,V);

It will not work if you create:

hq = quiver(U,V);

Cheers

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Robert Moucha 22 Oct 2008 09:06:22
customization Robert Moucha 22 Oct 2008 09:06:22
reference Robert Moucha 22 Oct 2008 09:06:22
arrow Robert Moucha 22 Oct 2008 09:06:22
scale Robert Moucha 22 Oct 2008 09:06:22
quiver Robert Moucha 22 Oct 2008 09:06:22

Contact us at files@mathworks.com