Hi Khalid,
As per the information given in the question above, I understand that you would like to get the IFFT graphs for your existing audio file (.wav format) using the code given provided in the question.
But unfortunately, you are facing issue while running the code.
For using the code for plooting the IFFT graphs, you will have to remove the input lines in the code and replace the "x" and "n" variables with the "sig1" and "fs" variables respectively. By doing this you can run your code without any errors. You can use the below modified code.
%IFFT
close all; clear all; clc;
[sig1, fs] = audioread('Books-Norm_01.wav'); % import the song
subplot(3,1,1); stem(sig1); xlabel('time'); ylabel ('amplitude');
title('Books-Norm_01.wav');
xk=ifft(sig1,fs);
magxk=abs(xk);
anglexk=angle(xk); k=0:1:fs-1;
subplot(3,1,2); stem(k,magxk); xlabel('time'); ylabel('amplitude');
title('mag plot');
subplot(3,1,3); stem(k,anglexk); xlabel('time'); ylabel('amplitude');
title('phase plot');
Hoping this would help!