Documentation

This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

feather

Plot velocity vectors

Syntax

```feather(U,V) feather(Z) feather(...,LineSpec) feather(axes_handle,...) h = feather(...) ```

Description

A feather plot displays vectors emanating from equally spaced points along a horizontal axis. You express the vector components relative to the origin of the respective vector.

`feather(U,V)` displays the vectors specified by `U` and `V`, where `U` contains the x components as relative coordinates, and `V` contains the y components as relative coordinates.

`feather(Z)` displays the vectors specified by the complex numbers in `Z`. This is equivalent to `feather(real(Z),imag(Z))`.

`feather(...,LineSpec)` draws a feather plot using the line type, marker symbol, and color specified by `LineSpec`.

`feather(axes_handle,...)` plots into the axes with the handle `axes_handle` instead of into the current axes (`gca`).

`h = feather(...)` returns the handles to line objects in `h`.

Examples

collapse all

Define `theta` as values between and . Define `r` as a vector the same size as `theta`.

```theta = -pi/2:pi/16:pi/2; r = 2*ones(size(theta));```

Create a feather plot showing the direction of `theta`. Since `feather` uses Cartesian coordinates, convert `theta` and `r` to Cartesian coordinates using `pol2cart`.

```[u,v] = pol2cart(theta,r); feather(u,v)```

See Also

Introduced before R2006a

Was this topic helpful?

The Manager's Guide to Solving the Big Data Conundrum

Download white paper