b=[ NaN NaN NaN NaN 0.0691 0.0697 0.0760 0.0829 0.0891 0.0907 0.0952 0.0941 0.0964 0.0963 0.1003 0.0913 0.0775 0.0725 0.0799 0.0843 0.0677 0.0449 0.0280 0.0212 0.0184 0.0163 0.0143 0.0123 0.0087]
[~,lct] = findpeaks(b,'MinPeakheight',0.05,'MinPeakDistance',1);
after running this statement
i am getting warning and my lct is
lct = 1×0 empty double row vector
it contains nothing. and warning is
Warning: Invalid MinPeakHeight. There are no data points greater than
MinPeakHeight.
> In findpeaks>removePeaksBelowMinPeakHeight (line 516)
In findpeaks (line 147)
can you please solve my problem. thanking you sir
Best Answer