def write(self, payload, log=False):
        try:
            if self.serial:
                self.serial.write(payload)
                if log:
                    self.logger.prn_txd(payload)
        except SerialException as e:
            self.serial = None
            self.LAST_ERROR = "connection lost, serial.write(%d bytes): %s"% (len(payload), str(e))
            self.logger.prn_err(str(e))
        return payload
read Matlab file containing one variable called 'data' which is an array
dataset/ETHPy150Open ARMmbed/htrun/mbed_host_tests/host_tests_conn_proxy/conn_proxy.py/SerialConnectorPrimitive.write--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/svmdata.py/SVMData.loadMATdata