I want to write an Interface for Matlab that works just like the Serial Monitor in Arduino.
The Arduino doesn't know, or care, what is on the other end of the serial port. So, whatever code was writing to the serial port that the Serial Monitor application was reading will continue to write to the serial port that matlab is reading from.