If you think the first plot has only two peaks, findpeaks may still be your best bet, you may want to pass the signal through a low pass filter first to make it easier to configure findpeaks.
If you really want all local maximums, there is a new function called islocalmax introduced in R2017b.
HTH