how create an matrix without NaN data?

Hi users Matlab...
I have an matrix as dimensions 180x89x1919> This my matrix have some data NaN.
How I could create an new matrix as same dimensions 180x89x1919 without this points (NaN) (...)??
This is possible?

5 Comments

The link does not work. Is that an array or a cell array? What do you want to replace the Nan's with?
Sara, ,180x89x1919. is my array
Sara
Sara on 15 Jul 2014
Edited: Sara on 15 Jul 2014
That's the dimension, not the type.
I have an matrix as ....180x89x1919..., ..., where:lon=180,lat=89,time=1919... and this matrix there are data with NaN ... I'd like to create a new matrix without these NaN, but as some dimensions ...lon,lat,time...
yes is the dimension!!

Sign in to comment.

 Accepted Answer

You would need to replace the NaN's with something:
your_mat(your_mat ~= your_mat) = some_value;

1 Comment

Hi José Luis!
José, my matrix already has the NaN (...) I need to remove them from my temporal series ...
The problem is that these NaN are in a matrix with 3D (lon = 190, lat = 89 time = 1919 "180x89x1919") and I need after withdrawal of these NaN still remains with my matrix the 3D (....)

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation of 2-D Selections in 3-D Grids in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!