# quiver

Creates a 2D quiver plot in an axis.

## Syntax

h = quiver(u, v)

h = quiver(x, y, u, v)

h = quiver(x, y, u, v, sf)

h = quiver(x, y, u, v, fmt)

h = quiver(hAxes, ...)

## Inputs

u, v
Coordinates of vectors.
Type: double | integer
Dimension: vector | matrix
x, y
Coordinates of vector origin.
Type: double | integer
Dimension: vector | matrix
sf
Scaling factor that controls the length of the vectors. The default value is 0.9. If set to 0 the vectors are not scaled.
Type: double
fmt
Formatting string for the vector. It can be any combination of the following strings:
1. line style: '-', '-.', ':', '--', '-:'.
2. line color: 'r', 'g', 'b', 'c', 'y', 'm', 'w', 'k'.
3. marker style: 's', 'o', 'd', 'x', 'v', '^', '+', '*', '.'.
Type: string
hAxes
Axis handle.
Type: double

## Outputs

h
Handle of the quiver graphics object.

## Examples

Simple quiver plot example:
clf;
u = linspace(1,3,9);
v = sin(linspace(1, 3, 9));
qh = quiver(0:8, 0:8, u,v);
axis([0 10 0 9]);
quiver plot style:
clf;
u = linspace(1,3,9);
v = sin(linspace(1, 3, 9));
qh = quiver(0:8, 0:8, u,v);
axis([0 10 0 9]);
set(qh, 'color', 'r')
set(qh, 'linestyle', '--')
set(qh, 'marker', 'o')
quiver plot with autoscaling disabled:
clf;
u = linspace(1,3,9);
v = sin(linspace(1, 3, 9));
qh = quiver(0:8, 0:8, u,v);
axis([0 12 0 9]);
set(qh,'autoscale','off');