Hello,
I have to find patterns in a plot but i dont know how to do it or if there is a tool for it.
I have to find different pulse shapes like rectangular pulses for example.
It can be find either with the derivate of the values 0r from the normal function.
Thank you very much!!
ylRange='Q2:Q2636';
xlRange='B2:B2636';
file='C:\Users\XXX\Desktop\ba\MessDaten\Highway.xlsx';
x=xlsread(file,'Harok3',xlRange);
y = xlsread(file,'Harok3',ylRange);
diffx=diff(x);
diffy=diff(y);
deriv = (diffy./diffx);
deriv(numel(x)) = 0;
plot(x,deriv);
xlabel('Time');
ylabel('Deriv Highway');