How to draw a zigzag line in MATLAB?

33 次查看(过去 30 天)
I want x and y points from a zigzag line in a x,y mesh/grid. How do I draw it on matlab?

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-11-19
编辑:KALYAN ACHARJYA 2019-11-19
x=randi(100,[1,10]);
y=randi(100,[1,10]);
line(x,y)
  2 个评论
Lucifer__
Lucifer__ 2019-11-19
It is actually just a plot of random x,y's. What I want is a linear zig-zag line on x and y axis. Thanks.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by