[y,fs]=audioread('Blank Space.mp3');
a = arduino('COM3','UNO');
x = writeDigitalPin(a,'D13',1);
if x==1
sound(y,fs)
else
clear sound;
end
clear a;
clear x;
%%Error using morning_alarm (line 2)
MATLAB connection to Arduino Uno at COM3 exists in your workspace. To create a new connection, clear the existing object.