Removing NaN from matrix

2 ビュー (過去 30 日間)
John Good
John Good 2020 年 11 月 27 日
回答済み: Sulaymon Eshkabilov 2020 年 11 月 27 日
I am trying to import an excel but the blank cells are coming through as NaN if I class them as a number which I need to do. I have attached a photo. I need the empty cells to be recognised as nothing, not 0 or NaN.

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 11 月 27 日
Use isnan() and assign the value you want or remove the points containing NaNs. See help how to employ it: mathworks.com/help/matlab/ref/isnan.html?searchHighlight=isnan&s_tid=srchtitle

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by