Matlab刪除NaN數據

刪除包含NaN的行:blog

a(any(isnan(a), 2),:) = [];

刪除所有爲NaN的行:class

a(all(isnan(a), 2),:) = [];
相關文章
相關標籤/搜索