MKR1000 TO MATLAB

Hi, im working with the Self Balancing Motorcycle on eng kit.

At this point I am trying to make work the MKR1000 with Matlab.

The Arduino program recognize the MKR1000 without problems and i can even run the blinking light and some other programs.
now, when I am trying to do the "arduinosetup" in matlab, it recognizes the board in a specific port and when i click on program it says " Failed to program the arduino board "
next I did was to follow the advise on the webside, " If you receive an error message related to source not being found for the Arduino/MKRMotorCarrier library, then type edit ArduinoKitHardwareSupportReadMe.txt in MATLAB Command Window and follow the instructions provided on this text file. "
after working on that, same problem keep happening. I dont know what to do now.
Also, is it normal that the MKR1000 gets kind of hot? I want to say that it may be burned, but will arduino recognize it either way?
thanks.