create coordination matrix from zig zag path from certain value to another value

2 次查看(过去 30 天)
I want to creat matrix with x and y coordiantion of zig zag path. For example from 128 to 132 :
A = [ 128 0
128 420
129 420
130 0
131 0
131 420
132 420
132 0]
Thanks.

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by