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

1 view (last 30 days)
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)

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

Categories

Find more on Interpolation in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!