count nan of different rows
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Victoria Pilar Quesada García
am 21 Mär. 2023
Beantwortet: Stephen23
am 21 Mär. 2023
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 Kommentare
Akzeptierte Antwort
Stephen23
am 21 Mär. 2023
S = load('TG_sshobscorr.mat');
D = S.sshobscorr;
Try either of these:
N = sum(~isnan(D),2)
N = sum(isfinite(D),2)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!