I am working on the macOS Mojave 10.14.6, I am running the following code to record a short audio waveform:
recObj = audiorecorder(44100,16,1);disp('Start speaking.');recordblocking(recObj, 3);disp('End of Recording.');play(recObj); y = getaudiodata(recObj);plot(y)
Matlab does not record anything. The output of a plot(y) function is just a straight line y = 0. Moreover, Matlab doesn't ask for a permission to access microphone and I am not able to grant this permission in the system_preferences/privacy because the permission table doesn't contain Matlab. I tried opening the software from the terminal. Is there any way to configure it manually?
Best Answer