Using the findchangepts function on data containing NaN datapoints
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi, 
My data contains NaN datapoints, so when I use the findchangepts function, I get the following error message:
xError using findchangepts
Expected input number 1, X, to be finite.
Error in findchangepts>getargs (line 166)
validateattributes(x,{'single','double'},{'real','2d','nonsparse','finite'}, ...
Error in findchangepts (line 99)
[statistic, Kmax, Lmin, penalty] = getargs(x, varargin);
Is there a way to use the findchangepts function on data containing NaN datapoints? 
If not, is there someway for me to transform my data so the findchangepts function can accept it without any errors?
Thanking you in advance!
0 Kommentare
Antworten (2)
  Samatha Aleti
    
 am 26 Mär. 2020
        You may remove NaN values from your "data" and then call “findchangepts” function with this "data". You can remove NaN values from your “data” as follows: 
data = data(~isnan(data)) 
  tara es
 am 12 Mai 2022
        you can use fillgaps function for fill NAN values (GAPs), without reduce the length of data. It can help you.
y = fillgaps(data)
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


