[an error occurred while processing this directive]
|
Data = [ 1 2;
-1 -2;
4 7;
1 -6;
3 1;
2 4;
-3 4;
1 -1];
% Data is what you have read from wav-file
% Instead of Data = [ 1 2; ... you have to write Data = wavread(...);
figure(100);
% Magnitude-to-frequency response of the left channel
plot(abs(fft(Data(:, 1))));
hold on;
grid on;
% Magnitude-to-frequency response of the right channel
plot(abs(fft(Data(:, 2))), 'r');
% po prosbam trudyaschihsya:
hold off;
zoom on;