MATLAB: I was trying the handel.m audio example for some testing, and now it is the ONLY sound I can listen to! PLEASE HELP!

problem with audio

So I was using the following https://www.mathworks.com/help/matlab/ref/audiowrite.html as an example to try it out, but now I wanted to change the audio file and I can only hear Handel!!!
This is my code now:
clear y Fs
[y,Fs] = audioread('president-is-moron.wav');
sound(y, Fs);
I've deleted all workspace variables, used the 'clc' and 'clear' and even restarted my computer, and when running the above code, I STILL HEAR HANDEL!!
Please help me it's driving me crazy

Best Answer

If you run:

[y, Fs] = audioread('president-is-moron.wav');
sound(y, Fs);

and hear "Handel", this wave file contains the sound of the file "handle.mat".

Or, as Walter said already, either audioread or sound has been overwritten by something, which let you hear an unexpected signal.