Does NaN used in confusion matrix affects results?
Show older comments
I have used confusion matrix and for making two matrices of equal dimensions I had used NaN but is it wise to use that? for example: A= [2 3 7 ]; B= [3 4 NaN]; C= A+B; C= 5 7 NaN I am getting where result should have been [5 7 7] according to me.Can anyone help? Thanx in advance.
3 Comments
TastyPastry
on 15 Jun 2016
Why not just set the NaN to 0 before calculation? I'm assuming you need the NaN for something before adding the matrices.
Ekta Sharma
on 15 Jun 2016
Ekta Sharma
on 15 Jun 2016
Accepted Answer
More Answers (0)
Categories
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!