Cody

Problem 44648. Zigzag of square matrix

Created by Jamal Nasir in Community

find zigzag of square matrix in one dimension array a=[1 2 3;4 5 6;7 8 9]; should return b= [1 2 4 7 5 3 6 8 9]

Solution Stats

34.38% Correct | 65.63% Incorrect
Last solution submitted on Mar 03, 2019

Problem Comments

Recent Solvers10

Suggested Problems

More from this Author2

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!