Last change
on this file since 147 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
File size:
435 bytes
|
Rev | Line | |
---|
[2] | 1 | function B = vmirror(A)
|
---|
| 2 | % ROWMULTIPLE Given an m x n matrix A
|
---|
| 3 | % along with an integer i between 1 and m and a
|
---|
| 4 | % nonzero scalar k this function will priduce a m x n
|
---|
| 5 | % matrix B that is the result of multiplying row i of
|
---|
| 6 | % A by k
|
---|
| 7 | [m,n] = size(A);
|
---|
| 8 | B = zeros(m,n);
|
---|
| 9 | for i=1:m
|
---|
| 10 | for j=1:n
|
---|
| 11 | B(i,j) = A(m + 1 - i,j);
|
---|
| 12 | end
|
---|
| 13 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.