Interfacing Arduino, MATLAB GUI and Microsoft Excel

Is it possible to use the codes that I have written in Arduino and at the same time i will interface it in both MATLAB GUI and Microsoft Excel? I have codes on the arduino for my sensors and relays and at the same time i would like to control the relay in MATLAB GUI. The Microsoft Excel would be the one saving data readings from the sensors. Help please.

The Arduino can communicate with the PC via the serial port. ONE application, either Excel or Matlab can be on the other end of the serial port.