フィルターのクリア

Isolate data elements out of a column on NaNs

1 回表示 (過去 30 日間)
Chelsey
Chelsey 2011 年 10 月 6 日
I have a large column of mostly "NaN" but it does periodically include actual data. Is there a way I can extract those data to form another vector?

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 6 日
a=[0 nan 1 nan];
b=a(~isnan(a))
  1 件のコメント
Chelsey
Chelsey 2011 年 10 月 6 日
THANK YOU!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by