Hi,
To find peaks of any signal initially it needs to be filtered through low pass in order to clear the local peaks
>>windowSize = 10; % window size can be changed as required
>>b = (1/windowSize)*ones(1,windowSize);
>>a = 1;
>>A = filter(b,a,A); %filtering using low pass
find the difference between the samples and find zero crossing points
>>A1 = [0;A(1:end-1)]; % for the purpose of calculating differentiation
>>A2 = A1-A; % difference gives the differentiation w.r.t to time sample
>>A4 = [A2(2:end);0]; %A4 is used to comparing the previous value to present
>>A3 = find(A2<0 & A4>0); % it contains the location of peaks
>>A3(end+1) = length(A2); % the last index value is added so that A5 have same length of A
In that location add the original values
>>A5(A3) = A(A3); %A5 have the all max values of give data
Then use the stem plot and appropriate limits to plot to see the data accurately and for viewing, adjust the values for data (like normalizing the data)
The reference code can be applied to different columns as well
The condition to A3 can also be optimized accordingly to eliminate the local peaks.