how create an matrix without NaN data?

1 回表示 (過去 30 日間)
Carlos Batista
Carlos Batista 2014 年 7 月 15 日
コメント済み: Carlos Batista 2014 年 7 月 15 日
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 件のコメント
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 日
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 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by