Documentation

This is machine translation

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

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

getpoints

Return points that define animated line

Syntax

[x,y] = getpoints(an)
[x,y,z] = getpoints(an)

Description

example

[x,y] = getpoints(an) returns the x and y coordinates for the points that define the animated line specified by an. Create an animated line with the animatedline function.

[x,y,z] = getpoints(an) returns the coordinates for the 3-D animated line specified by an. If the line does not have any z values, then getpoints returns z as a vector of zeros the same length as x and y.

Examples

collapse all

Create an animated line with 10 points. Then, return the points stored in the animated line.

h = animatedline(1:10,1:10);

[x,y] = getpoints(h)
x = 

     1     2     3     4     5     6     7     8     9    10

y = 

     1     2     3     4     5     6     7     8     9    10

Input Arguments

collapse all

AnimatedLine object. Create an AnimatedLine object using the animatedline function.

Output Arguments

collapse all

x values that define the animated line, returned as vector.

y values that define the animated line, returned as vector.

z values that define the 3-D animated line, returned as vector.

Introduced in R2014b

Was this topic helpful?