How can I interpolate matrix?
Show older comments
0 0 0 0 31.2117
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
33.4177 0 33.0571 0 32.2147
I have 5*5 matrix.
I want to interpolate zeros using nonzero values.
How can I make this one?
2 Comments
Stephen23
on 5 Mar 2021
Do you only want to interpolate, or do you want to extrapolate as well?
(If you only want interpolation, the left hand upper triangular section will be NaN)
HyoJae Lee
on 5 Mar 2021
Accepted Answer
More Answers (1)
darova
on 5 Mar 2021
0 votes
Use scatteredInterpolant
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!