Shizun Li - MATLAB Cody - MATLAB Central

Shizun Li

24685
Rank
2
Badges
190
Score
1 – 21 of 21

Shizun Li submitted a Comment to Problem 11. Back and Forth Rows

Check this out. function b = back_and_forth(n) b=1:n^2; b=reshape(b,n,n)'; for i=2:2:n b(i,:)=fliplr(b(i,:)); end end

on 31 Oct 2018

Shizun Li received Commenter badge for Solution 1663519

on 31 Oct 2018

Shizun Li submitted a Comment to Solution 1663519

Check this out. function b = back_and_forth(n) b=1:n^2; b=reshape(b,n,n)'; for i=2:2:n b(i,:)=fliplr(b(i,:)); end end

on 31 Oct 2018

Shizun Li received Solver badge for Solution 1662757

on 31 Oct 2018

1 – 21 of 21
Go to top of page