I'm having issues with using findpeaks() for lab data.
I have my script calling a csv file with 2 columbs of data.
As you can see from my script I can get the data to plot easily, however when I insert findpeaks(col1,col2) or findpeaks(data) I get an error message I don't understand.
The error I get is as follows:
Error using findpeaks
Expected Y to be a vector.
Error in findpeaks>parse_inputs (line 199)
Error in findpeaks (line 136)
Can anyone please explaene to me why this isn't working.
col1 = data(:,1);
col2 = data(:,2);
grid on, grid minor