How to use the fillmissing function to interpolate at certain points
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Swapnil Sayan Saha
el 13 de Mzo. de 2020
Comentada: Mohammad Sami
el 13 de Mzo. de 2020
Suppose I have some data at times t = 1:100, with some missing values.
I want to use fill missing function to interpolate only at certain data points e.g. at t = 10,20,30,40,50,60,70,80,90,100.
Sample points argument does not seem to be working.
0 comentarios
Respuesta aceptada
Mohammad Sami
el 13 de Mzo. de 2020
You can directly use interp1 to interpolate at your desired time intervals.
t = 1:100;
v = zeros(1,100); % here v is the value u are interpolating
ti = 10:10:100;
vi = interp1(t,v,ti);
2 comentarios
Mohammad Sami
el 13 de Mzo. de 2020
yes just create a ti vector comprising of the values you need.
ti = [2:4 15:25]; % etc
Más respuestas (0)
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!