Serial communication with Matlab (Arduino Mega)

Hi everyone,

I'm having a serious problem with Arduino mega.
In a project of mine, I should send some data from Matlab to Arduino Mega, which receives the data and applies them to some PWM pins. Until yesterday everything worked very well, but now it seems that Arduino can't receive the data anymore.

The serial communication opens and closes normally without any problem as well as I can load new Arduino sketch (and works well) so I don't really don't have any idea what is the problem.
I tried the same code on Arduino Leonardo and everything it's ok, so I'm sure that the problem is not the code.

Can you help me?
Thanks

Could also try a spare arduino mega .... and also make sure to set up the correct serial data speed.