Zigzag Scan

Straight and inverse zigzag scan for matrices of any sizes
7.3K Downloads
Updated 30 Mar 2016

View License

Straight and inverse zigzag scan for matrices of any sizes.
zigzag(in) takes a matrix as an input and returns a one-dimensional array consisting of a zigzag scan results.
izigzag(in, vmax, hmax) takes a one-dimensional array and converts it back to (vmax x hmax) matrix.

Cite As

Alexey Sokolov (2024). Zigzag Scan (https://www.mathworks.com/matlabcentral/fileexchange/15317-zigzag-scan), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

!