I have this peculiar problem with findpeaks. When my graph doesn't work properly and produces a flat line as output, the findpeaks command shows same value duplicated thrice or four times in a vector. That part is understandable. Now when I use the unique command on the vector, it doesn't give the unique values but shows the duplicated values as in vector. Instead of showing a single value, it shows the vector as such.
How to overcome this problem?
Kindly let me know. Thank you.