I am trying to excute the following lines with MATLAB app designer
[x, fs] = audioread('wave.wav');
app.freq = 2 * fs;
player = audioplayer(x, app.freq);
but no sound is produced. However, when I copy the above lines along with those lines,
it sounds in the command window but not in the app designer.
How can I fix this issue? - TIA