I am trying to read a file and find its peak. But the findpeak function keeps throwing errors. Please help. I am new to matlab.
[pks,locs] = findpeaks(KD);
Error using findpeaks
Expected Y to be one of these types:
Instead its type was table.
Error in findpeaks>parse_inputs (line 199)
Error in findpeaks (line 136)
Error in Untitled (line 6)