![]() ![]() It might be worthwhile to contact The Mathworks about this. Scatter(year(locations),avSpots(locations),40,'filled') ![]() Find peaks of the absolute value of the 1st Derivative above 1.5. Call findpeaks with a single input argument (y data that is, you can use property/value pairs as well) and use the indices (locations) to show the peaks: clc All data collected is then processed using scripts composed in MATLAB, which will be. It looks like in R2014b they changed some stuff about findpeaks that does not work with older versions.like calling the function with not output argument in R2014b plots the data/peaks without any additional step.but it does not for earlier versions.Īnyhow here is a way to workaround the problem. peaks (their indexes and values) with peakValues, indexes findpeaks(signal). For some reason it seems we can't use findpeaks with the x-and y-data as input arguments, We need to call the function with the y data and use the output to get the peaks/plot them. How can I smooth a signal while preserving peaks in MATLAB (R2013a). I have the same problem as you (R2013a on OSX) with the example by the Mathworks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |