I would like to get the error rate of 2 vectors?
like
# incorrect numbers 6
error rate = ______________________ = ____
# total numbers(size) 15
here are 15
numbers, 9
are correct
x
is the true answer (the reference), and y
is vector with answers
I would like to compare them and get error rate:
x= [1 ,1,1, 1,1, 1,1,1,1,1, 1,-1,-1,-1,-1]
y= [-1,1,1,-1,1,-1,1,1,1,1,-1, 1,-1, 1,-1]
- Also is it corret what I am doing? Ok I was wrong about the formula I updated it.
x-y
, and if the result is 0 they are equal, but do not how to code in MATLABsize(x-y < 0);
but don't get correct answer – edgarmtze