here is my program :
SamplesPerFrame = 3073;
Microphone = dsp.AudioRecorder('SamplesPerFrame', SamplesPerFrame,...
'OutputDataType','double');
Fs = Microphone.SampleRate;
Spectra = dsp.SpectrumAnalyzer('SampleRate',Fs,'PlotAsTwoSidedSpectrum',false,...
'SpectralAverages',20,'FrequencyScale','Log');
tic;
while toc < 100000
audioIn= step(Microphone);
step(Spectra,audioIn);
audio=audioIn(:,1);
[pk1,lc1] = findpeaks(audio,'SortStr','descend','NPeaks',3);
end
release(Microphone);
release(Spectra);
what should I do to get the frequency of the highest peak ???