How to use the fillmissing function to interpolate at certain points

2 次查看(过去 30 天)
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.

采纳的回答

Mohammad Sami
Mohammad Sami 2020-3-13
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by