How to choose MaxNumChanges when using findchangepts
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I am using findchangepts to find the points where a signal changes the most. This is not really an electric signal. These are participant's responses through time using a potentiometer. So, on a table I have a linear slide potentiometer like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190131/image.jpeg)
Participants are using this to rate whether a particular feeling during the experiment is increasing or decreasing.
I am using findchangepts to understand when there are significant changes in their response. I arbitrarily choose MaxNumChanges, 4. This is the line of code:
findchangepts(myVar,'Statistic','linear','MaxNumChanges',4)
The result seems quite good. Given what I expected, it seems to make sense:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190132/image.jpeg)
However, the error seems to be huge. Also, I don't know if I can show this in a publication. I expect reviewers to ask me why did I choose 4 points and not 2 or 10, and also why I have such a huge error.
So, does anybody know how can choose the MaxNumChanges and what would be an acceptable error?
Thank you for your time, Gianluca
1 Commento
Greg Dionne
il 4 Giu 2018
You may find this answer helpful:
https://www.mathworks.com/matlabcentral/answers/351954-what-does-minthreshold-parameter-explain-in-findchangepts-function-in-matlab2017r
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!