Error compling for board Arduino MKR1000

I have just got my Arduino MKR1000 board. When I tried to run the blink program, I got the following error messages said that there is an error when commpling Arduino MKR1000.

Arduino: 1.8.6 (Windows 8.1), Board: "Arduino/Genuino MKR1000"

In file included from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,

                from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd.h:105,

                from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/sam.h:470,

                from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.19\cores\arduino/Arduino.h:48,

                from sketch\Blink.ino.cpp:1:

C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:237:26: fatal error: core_cm0plus.h: No such file or directory

#include <core_cm0plus.h>

                         ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino MKR1000.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Not everyone uses "matlab" and even less people can see your sketch.

Please use the code tags to post any error msg or sketches ( </> )

Here is the code that i used.

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

SO you are using matlab as the IDE ?

Totally confused here now.

How does it work if you use the proper Arduino IDE ?

Apart from looking like a matlab issue the sketch will work fine.

Thanks for the replied. I have MATLAB installed on my computer but I use Arduino IDE to program my MKR1000 board. When I tried to run the blink program on Arduino IDE there is an error message saying that there is an error when compiling for board Arduino MKR1000. I don't know why there are MATLAB error messages showing up on Arduino IDE because I did not use MATLAB at all when programming the board.

I got it sorted by installing the Arduino support package on MATLAB and now it works fine. Thanks for the help.