帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
返回用来定义动画线条的点
[x,y] = getpoints(an)
[x,y,z] = getpoints(an)
示例
[x,y] = getpoints(an) 返回用于定义 an 所指定动画线条的点的 x 和 y 坐标。使用 animatedline 函数创建一根动画线条。
x
y
an
animatedline
[x,y,z] = getpoints(an) 返回由 an 指定的三维动画线条的坐标。如果线条没有任何 z 值,则 getpoints 将 z 作为长度与 x 和 y 相同的零向量返回。
z
getpoints
全部折叠
创建一个 10 磅的动画线条。然后,返回存储在动画线条中的点。
h = animatedline(1:10,1:10);
[x,y] = getpoints(h)
x = 1×10 1 2 3 4 5 6 7 8 9 10
y = 1×10 1 2 3 4 5 6 7 8 9 10
AnimatedLine
AnimatedLine 对象。使用 animatedline 函数创建一个 AnimatedLine 对象。
定义动画线条的第一个坐标值,以向量形式返回。对于笛卡尔坐标区,第一个坐标位于 x 轴位置。对于地理坐标区,第一个坐标是纬度(以度为单位)。
定义动画线条的第二个坐标值,以向量形式返回。对于笛卡尔坐标区,第二个坐标位于 y 轴位置。对于地理坐标区,第二个坐标是经度(以度为单位)。
定义三维动画线条的第三个坐标值,以向量形式返回。对于笛卡尔坐标区,第三个坐标值位于 z 轴位置。
在 R2014b 中推出
addpoints
clearpoints
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office