# Homework Help: Image processing matrix image rotation

1. Jul 30, 2009

### billybob5588

1. The problem statement, all variables and given/known data

image processing

I would like to rotate an m*n image matrix by any input degree, simplest cases 90, 180 and 270 on matlab without using any of the built in functions i.e. purely mathematical

2. Relevant equations

3. The attempt at a solution

\left[ \begin{matrix} cos\left(\theta \right) & sin\left(\theta \right) \\ -sin\left(\theta \right) & cos\left(\theta \right) \end{matrix}\right]

is the rotation matrix , how would i apply this to a general case for a m*n matrix?

2. Jul 30, 2009

### billybob5588

$$\left[ \begin{matrix} cos\left(\theta \right) & sin\left(\theta \right) \\ -sin\left(\theta \right) & cos\left(\theta \right) \end{matrix}\right]$$