フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I find out the solution of second derivative pick detection. I have already done 1st derivative pick detection now I want use the same method for 2nd derivatives..

1 回表示 (過去 30 日間)
Md. Najmul Mowla
Md. Najmul Mowla 2019 年 12 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
My first derivative Pick detection code is given bellow:
clear;
clc;
t=-5:1/20:5;
ind1=zeros(1,length(t));
x=sin(2*pi*t)+cos(3*pi*t);
% x=sin(2*pi*t);
g=diff(x);
ind = find(g(1:end-1).*g(2:end) < 0)+1;
plot(t,x, t(ind), x(ind), 'o');
Now, I want to write second derivative pick direction by using above code.
The second derivative equation is
Y1(n) = [x(n)-2x(n-2)+x(n-4)]
Please, help me to write the code for Second derivative

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by