nanmean and mean ( 'omitnan') error
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sahar khalili
il 22 Lug 2021
Risposto: Sahar khalili
il 22 Lug 2021
Hi all,
I have a question, I have a data set like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/692469/image.png)
I replace empty cells with nan and then I try to use nanmean and also mean (PAR_1, 'omitnan'), but I face this error anyway:
Error using sum
Invalid data type. First argument must be numeric or logical.
Does anybody know how can I solve this?
Thanks,
0 Commenti
Risposta accettata
Più risposte (1)
Vedere anche
Categorie
Scopri di più su NaNs in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!