Sending image from Matlab via serial port and sending it back

I don't understand why you would try to send 540,000 bytes to an Arduino that has 2,000 byte of SRAM.

...R