comparing a cell with the before it, Percentage of change
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone,
So I am still learning on Matlab, and so I have two matrices or arrays, A which is 2000x1 and T 2000x1. T is being the time for A. I am trying to determine the rate of change between the cells (each one with its prior or to 5th prior cell) and after that is done I'll simply elimate any cell of A that has a rate of change higher than 5% and it's correlated cell in T. I tried to use 'findchangepoints' but couldn't set such a parameter (percentage/rate of change).
All this effort just to find and extract the steady state of this datagraph, if you have any better ideas please do share.
all comments are appreciated.
0 件のコメント
採用された回答
Yazan
2021 年 7 月 21 日
If you are defining the rate of change as:
the problem becomes easy. Assuming that you have vectors, just use
delta = diff(x)./x(1:end-1);
Then, you can filter out x based on delta. If you need to detect some abrupt changes in the signal, then there are more sophesticated signal processing techniques, but you need to provide the data and more detail about your problem to get help from the community.
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!