Error when uploading the sketch of blink twice

Well, The matlab is open but is not running with any program.I still think this is related with the Matlab.

After I added the libraries of MKRMotorCarrier and RotaryEncoder during the Hardward Setup process, the issue was fixed in both of Matlab and IDE.

Do I need to upload the MortorCarrier and Encoder libraries to the Arduino each time when I start Matlab?
I found that there are only three libraries including 'I2C','Servo'and'SPI' when I restart the Matlab. Is this what it should be?

By the way, could you please also look at another subject 'About Delpoying the simulink model to MKR1000' that I posted? Appreciate your help.