フィルターのクリア

Function findchangept doesn't work when option 'MaxNumChanges' in added

3 ビュー (過去 30 日間)
Andrea Maria Di Palma
Andrea Maria Di Palma 2021 年 3 月 30 日
回答済み: Ayush 2024 年 1 月 1 日
I have a vector with 112706 float value describing a speed profile. When I launch the command
findchangepts(T7ConfBAFFA1speed, 'MaxNumChanges', 10, 'Statistic', 'std')
matlab get busy and dosn't get any results, the ony option is to kill execution.
The very strange thing is that if I launch
findchangepts(T7ConfBAFFA1speed)
it work and return a value and a plot, but if I launch
findchangepts(T7ConfBAFFA1speed, 'MaxNumChanges', 1)
get busy and dosn't get any results, the ony option is to kill execution.
What I am doing wrong?
Thank you all in advance for your availability!

回答 (2 件)

Ayush
Ayush 2024 年 1 月 1 日
I understand that you are unable to run the findchangepts when MaxNumChanges are provided. The issue which existed till R2016b was when FINDCHANGEPTS function was called with an argument of type "single" and high "MaxNumChanges" value, loops infinitely and never returns.
% This works
findchangepts(double(singledata), 'MaxNumChanges', 250)
% This never returns
findchangepts(singledata, 'MaxNumChanges', 250)
% This also works
findchangepts(singledata)
However, post R2017a release the issue has been fixed. If you are using R2017a or higher release and still facing the issue, kindly attach your data files here so that I can better help you.
Thanks,
Ayush

Star Strider
Star Strider 2021 年 3 月 30 日
I am not certain the results will be better, however the ischange function (introduced in R2017b) is an alternative.

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by