Parallel coding in mbed and MATLAB