5x7 LED Matrix Issue

He said:-

i use the led matrix without any other parts as shown in the arduino playground

That is one of the bad tutorials that can damage your arduino because there are no current limiting resistors in line with the LED. The lack of resistors won't stop it appearing to work though it will just do the damage. Note on the arduino page hey do mention that.

So it looks like you have not identified the wires into your matrix correctly. What have you done to ensure that the anodes and cathodes are what you think they are?

Exactly what did you see when you ran the code?