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

조회 수: 1 (최근 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에서 Environment and Clutter에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by