source:
liacs/la/opdr3/rotate180.m@
7
Last change on this file since 7 was 2, checked in by , 15 years ago | |
---|---|
File size: 164 bytes |
Rev | Line | |
---|---|---|
[2] | 1 | function B = rotate180(A) |
2 | [m,n] = size(A); | |
3 | B = zeros(m,n); | |
4 | for i=1:m | |
5 | for j=1:n | |
6 | B(i,j) = A(m + 1 - i,n + 1 - j); | |
7 | end | |
8 | end |
Note:
See TracBrowser
for help on using the repository browser.