Finding gradient of a part of a graph
古いコメントを表示

May I know how to find the gradient of the first linear part? What function should I use?
採用された回答
その他の回答 (1 件)
A=your signal; dx=epsilon(2)-epsilon(1); % assuming the sampling frequency is constant
[M,I] = max(A);
B=diff(A(1:I))./dx;
カテゴリ
ヘルプ センター および File Exchange で Sparse Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
