Sudden changes in data values - how to detect?
古いコメントを表示
I have a matrix of data with around 2000 rows and only 1 column. They first few hundred are all numerical values between 1-10 and then all of a sudden, there is a change in the values to numbers between 1000-10000. How could i write a code to find the position in which this change occurs? I have been stuck with the question for several days and i can't think of a logical way to do it. I am extremely new to matlab.
Thank you
採用された回答
その他の回答 (1 件)
Steven Lord
2022 年 11 月 2 日
1 投票
Since this question was asked the ischange function has been added to MATLAB. Its short description is "Find abrupt changes in data".
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!