How can i recognize patterns in a plot

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);%X-Values/Time
y = xlsread(file,'Harok3',ylRange);%Y-Values/Current
diffx=diff(x);
diffy=diff(y);
deriv = (diffy./diffx);
deriv(numel(x)) = 0;
%plot(y); This woukd plot the normal function
plot(x,deriv); %Plotting the derivate
xlabel('Time');
ylabel('Deriv Highway');

1 件のコメント

Luna
Luna 2019 年 5 月 16 日
Are you searching for a specific pattern or are you looking for a repetitive cycle of this data?
Could you please share your data as an attachment so that we can run your code.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLanguage Fundamentals についてさらに検索

質問済み:

2019 年 5 月 16 日

コメント済み:

2019 年 5 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by