To reverse each row in quadrant 2 of a matrix in Matlab, you can use the fliplr function which flips the order of the elements in a row.
Assuming your matrix is called "originalMatrix", you can use the following code:
main.m476 chars18 lines
This code first extracts quadrant 2 of the matrix by taking the first half of the rows and the second half of the columns. It then uses a for loop to reverse each row in quadrant 2 using the fliplr function. Finally, the reversed quadrant 2 is reassigned back to the original matrix.
gistlibby LogSnag