I2C/SPI is a protocol that is not compatible with any hardware that normally occurs in a PC. In particular it is definitely not compatible with UART. Please see http://www.mathworks.com/matlabcentral/answers/16808-matlab-to-hc12.
You would need some kind of interface hardware and you would need to figure out how to talk to the interface.
