Info

This question is closed. Reopen it to edit or answer.

How can I interpolate this row?

1 view (last 30 days)
Riyadh Muttaleb
Riyadh Muttaleb on 7 Nov 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi Everyone, I would like to get your help to interpolate this vector: x=[2 NaN NaN 5 NaN NaN] to fill the messing values
Thanks in advance
Riyadh
  2 Comments
Riyadh Muttaleb
Riyadh Muttaleb on 7 Nov 2017
Edited: Riyadh Muttaleb on 7 Nov 2017
No. Do you know how can I interpolate one like this[2 3 4 5 NaN NaN]?

Answers (1)

M
M on 7 Nov 2017
Edited: M on 7 Nov 2017
Check if the fillmissing function does what you want. https://mathworks.com/help/matlab/ref/fillmissing.html
  3 Comments
Riyadh Muttaleb
Riyadh Muttaleb on 7 Nov 2017
Thank you.. I already did and I had gotten the answer

Tags

Community Treasure Hunt

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

Start Hunting!