how to interpolate the 393x32 matrix which consists zeroes in between

in my data set along the zeroes are present(which i didnt required) so i have to remove it, and make my data even series by cubic interpolation.
how to do this?

Answers (1)

Set the zeros to NaN:
Data(Data == 0) = NaN;
Then use one of the many solutions from tzhe FileExchange: FEX: Search interpolate+nan

Tags

No tags entered yet.

Answered:

Jan
on 26 Oct 2015

Community Treasure Hunt

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

Start Hunting!