count nan of different rows
3 ビュー (過去 30 日間)
古いコメントを表示
Victoria Pilar Quesada García
2023 年 3 月 21 日
I have this that adds 485 rows and more than a thousand columns but many of the values are NaN, I would like to count how many of those values are numbers but in each row. that is, each row represents data from a sensor and I want to know which sensor provides more numerical data
clear all;close all
load 'TG_sshobscorr.mat'
data=sshobscorr
0 件のコメント
採用された回答
Stephen23
2023 年 3 月 21 日
S = load('TG_sshobscorr.mat');
D = S.sshobscorr;
Try either of these:
N = sum(~isnan(D),2)
N = sum(isfinite(D),2)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!