Zigzag Scan

Straight and inverse zigzag scan for matrices of any sizes

You are now following this Submission

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 (2026). Zigzag Scan (https://in.mathworks.com/matlabcentral/fileexchange/15317-zigzag-scan), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Linear Algebra in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

!