I was given the following problem at my university: We are given an audio file which we have to download. Following that we have to create a MATLAB code that can create a discrete-time graph of the signal in the time domain. Following that we have to create another graph this time displaying its Fourier transform.
The problem is that we have zero knowledge of MATLAB. I tried piecing some things together but the truth is that I am completely lost. This is the best I could come up with. It displays an error on the readaudio line
[data, Fs] = audioread("/MATLAB Drive/recordingX.wav");
X = getaudiodata(data);
n = 0:1/Fs:(length(X)-1)/Fs;
So basically I can't figure out how to read the .wav file and display it in the time domain and as a result I cannot move on to the next step. I have uploaded the file to MATLAB online.
Can you please offer some assistance? Mind you I have no idea how MATLAB works so what I am looking for is not a detailed explanation but rather something that I could use.
Thanks in advance, and sorry for any problems with the question it's my first time using a site like that