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

Sara
Sara 2014년 7월 15일
The link does not work. Is that an array or a cell array? What do you want to replace the Nan's with?
Carlos Batista
Carlos Batista 2014년 7월 15일
Sara, ,180x89x1919. is my array
Sara
Sara 2014년 7월 15일
편집: Sara 2014년 7월 15일
That's the dimension, not the type.
Carlos Batista
Carlos Batista 2014년 7월 15일
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...
Carlos Batista
Carlos Batista 2014년 7월 15일
yes is the dimension!!

댓글을 달려면 로그인하십시오.

 채택된 답변

José-Luis
José-Luis 2014년 7월 15일

0 개 추천

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

댓글 수: 1

Carlos Batista
Carlos Batista 2014년 7월 15일
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 (....)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

질문:

2014년 7월 15일

댓글:

2014년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by