MATLAB: Curve at the peak values

curve fittingfrequency

For the evaluation of measurement results, a curve should be laid through the maximum values (polynomial or spline). Is there a direct possibility here or must the maximum measured values be read out separately?
Many thanks!
Picture1.png

Best Answer

Thanks, with
[pkt,lct] = findpeaks(ChannelE,Frequency,'Threshold',0.8);
this works quite well. What's the best way to create a fitting curve through the points? With polyfit or lsqcurvefit I was not very successful...
Many thanks!