Implementing a Matlab to TWS connection using native-Matlab sockets code will be slow (much overhead), unless you really know what you are doing, or you only require real time data for a few symbols.
I recommend using Matlab + MEX code for prototyping, simulation and backtesting. Use Matlab...