V = magic(3)+permute([0 0 0],[1 3 2])+permute(1:10,[1 4 3 2]); out = stretch3(V);
Mehul Gajwani, Monash University, 2024