📄 zigzag_dezigzag_test.m
字号:
clc, close all, clear all
N=5;
A=randint(N,N,[2,10]) %N-by-N, random array of integers
% % -----------------------------------------
Z=zigzag2dto1d(A) % zig-zag
B=dezigzag1dto2d(Z) % de zig-zag
% % --------------------------------------------
isequal(A,B)
% % This program or any other program(s) supplied with it do not provide
% % any warranty direct or implied. This program is free to use for
% % non-commerical purpose only. For any other usage contact with author.
% % Kindly reference the author.
% % Thanking you.
% % @ Copyright M Khan
% % Email: mak2000sw@yahoo.com
% % http://www.geocities.com/mak2000sw/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -